bbottema/simple-java-mail

Enhancement: SMTP server config should be optional in case a CustomMailer is used

bbottema opened this issue · 1 comments

In case of a CustomMailer (mailerBuiler.withCustomMailer(...)), the SMTP server config is not used at all and so the mailer should never failing on missing server config. Moreover, there should be an entry builder method for Custom Mailer so users are not forced to start with a dummy SMTP server.

7.8.0 released, now SMTP server config can be omitted in case of withCustomMailer:

Mailer mailGunMailer = MailerBuilder
      .withCustomMailer(new MailGunMailer())
      .(..)
      .buildMailer();