For a concise and more flexible API, completely replace Mailer constructors with MailerBuilder. Add support completely ignoring property defaults.
bbottema opened this issue · comments
Benny Bottema commented
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.
Benny Bottema commented
Released as 5.0.0.rc1-SNAPSHOT. Add OSS' snapshots repo to find it in Maven.