Simple Java Mail 1.9 is now available in Maven Central

PDF

I hadn’t gotten around to putting Simple Java Mail into Maven Central due to the complexities of going through Sonatype first. But now it is done: Simple Java Mail v1.9 now resides in Maven Central and can be included in your project using the following dependency:

Speaking of which, v1.9 was recently released with the following changes (in addition to Maven support, making it 1.9.1):

  • added support for JavaMail’s reply-to address
  • made port optional as to support port defaulting based on protocol
  • added transport strategy default in the createSession method (solving potential NullPointerException)
  • tightened up thrown exceptions (MailException? instead of RuntimeException?)
  • added and fixed JavaDoc

Here’s a small example of the reply-to addition:

Tags:

Leave a Reply