Skip to content

arkanovicz/simple-mailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-mailer

A simple Java mail sender.

Usage

At initialization time, launch the smtp loop:

import com.republicate.mailer.SmtpLoop;

...

  new Thread(new SmtpLoop(), "smtp").start();

Send mails using:

import com.republicate.mailer.EmailSender;

...

    EmailSender.send("some-sender@foo.com", "some-recipient@bar.com", "This is the subject", "Some text body");


The doc is just underway. Check the sources for other implemented details (several recipients, reply-to, cc, bcc, html, inline images, attachments).