Skip to content

mdewilde/simplemail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleMail

SimpleMail is (yet another) simple Java SMTP email sender.

Usage example

Create a Mailer instance to send email using localhost:

Mailer mailer = new Mailer("localhost");

Construct an email:

Mail mail = new Mail()
			.from("[email protected]")
			.to("[email protected]")
			.bcc("[email protected]")
			.withSubject("'tis but a subject")
			.withText("o hi there");

Send the email:

mailer.send(mail);

It is also possible to construct a Mailer instance with a fallback value for the from field, and additional addresses to be added as to, cc and/or bcc of every sent email.

Mailer mailer = Mailer.builder("localhost")
				.from("[email protected]")
				.cc("[email protected]")
				.build();

Maven Central

Include this project directly from Maven Central

<groupId>be.ceau</groupId>
<artifactId>simplemail</artifactId>
<version>0.9.5</version>

Source code

Source code is available on GitHub.

Javadoc

Browse this project's Javadoc.

Download

Download this project

GnuPG public key

Verify signature files with my GnuPG public key.

License

SimpleMail is licensed under the Apache 2.0 license.

About

Simple SMTP mailer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages