Skip to content

Simple e-mail sender using javax.mail that suports gmail's smtp

License

Notifications You must be signed in to change notification settings

oncast-labs/simplemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplemail

Simple e-mail sender using javax.mail that suports gmail's smtp

Usage

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!

About

Simple e-mail sender using javax.mail that suports gmail's smtp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages