SimpleMail is (yet another) simple Java SMTP email sender.
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();
Include this project directly from Maven Central
<groupId>be.ceau</groupId>
<artifactId>simplemail</artifactId>
<version>0.9.5</version>
Source code is available on GitHub.
Browse this project's Javadoc.
Download this project
- simplemail-0.9.5-javadoc.jar
- simplemail-0.9.5-javadoc.jar.asc
- simplemail-0.9.5-sources.jar
- simplemail-0.9.5-sources.jar.asc
- simplemail-0.9.5.jar
- simplemail-0.9.5.jar.asc
- simplemail-0.9.5.pom
- simplemail-0.9.5.pom.asc
Verify signature files with my GnuPG public key.
SimpleMail is licensed under the Apache 2.0 license.