More details are here: email.jcabi.com
It is an object-oriented email sending SDK for Java:
Postman postman = new Postman.Default(
new SMTP("smtp.googlemail.com", 465, "username", "password")
);
postman.send(
new Envelope.MIME()
.with(new StSender("Yegor Bugayenko <[email protected]>"))
.with(new StRecipient("Jeff Lebowski", "[email protected]"))
.with(new StSubject("dude, how are you?"))
.with(new StBCC("[email protected]"))
.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.
Fork the repository, make changes, submit a pull request.
We promise to review your changes same day and apply to
the master
branch, if they look correct.
Please run Maven build before submitting a pull request:
$ mvn clean install -Pqulice