Simple e-mail sender using javax.mail that suports gmail's smtp
Sending using g-mail:
first create configuration file named 'email.properties' and put the content bellow:
email.user=email@example.com
email.password=123456
then send synchronously:
MailSender.send()
.email(new SimpleTextEmail("Subject", "content text"))
.to("email@example.com")
.andWait();
or asynchronously:
MailSender.send()
.email(new SimpleTextEmail("Subject", "content text"))
.individually()
.to("email.1@example.com", "email.2@example.com")
.inBackground();
It also supports callbacks and HTML templates. Check it out!