Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 2.03 KB

README.md

File metadata and controls

68 lines (52 loc) · 2.03 KB

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.