greenmail-mail-test / greenmail

Official master for the Greenmail project
http://greenmail-mail-test.github.io/greenmail/
Apache License 2.0
624 stars 179 forks source link

Fluent API for test mail creation #38

Open camann9 opened 9 years ago

camann9 commented 9 years ago

Search for an API that allows test mail creation in an easy way or create one. Example:

mail().withHtml("<html></html>").withText("test").withAttachment("file.txt", "test")
buildscientist commented 8 years ago

:100: :+1: for this - I think using the builder pattern is the way to go.

buildscientist commented 8 years ago

Should be up to the user to decide whether to use Apache Commons Email or Spring Email libraries.

Recommend using one of those libraries instead of using GreenMailUtil. Add documentation to website detailing how to do the same using Apache Commons Email/Spring Email.