It is an object-oriented email sending SDK for Java:
Postman postman = new Postman.Default( new SMTP( new Token("user", "password").access( new Protocol.SMTP("smtp.gmail.com", 587) ) ) ); postman.send( new Envelope.MIME() .with(new StSender("Yegor Bugayenko <email@example.com>")) .with(new StRecipient("Jeff Lebowski", "firstname.lastname@example.org")) .with(new StSubject("dude, how are you?")) .with(new StBCC("email@example.com")) .with(new EnPlain("Hi, long time no see! :) Check my pic!")) .with( new EnBinary( new File("/tmp/picture.gif"), "my-picture.gif", "image/gif" ) ) );
If you have any questions about the framework, or something doesn't work as expected, please submit an issue here.
How to contribute?
Fork the repository, make changes, submit a pull request.
We promise to review your changes same day and apply to
master branch, if they look correct.
Please run Maven build before submitting a pull request:
$ mvn clean install -Pqulice