bbottema / simple-java-mail

Simple API, Complex Emails (Jakarta Mail smtp wrapper)

Home Page:http://www.simplejavamail.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For a concise and more flexible API, completely replace Mailer constructors with MailerBuilder. Add support completely ignoring property defaults.

bbottema opened this issue · comments

Currently, the constructors are growing wild in the Mailer class. This is due to the fact that, programmaticcally, there is no invalid combination of parameters as any missing argument can be compensated with a property default.

As such, to keep the Mailer API simple and flexible at the same time, all constructors should be replaced in favor of a new MailerBuilder class.

Released as 5.0.0.rc1-SNAPSHOT. Add OSS' snapshots repo to find it in Maven.