Skip to content

v1.1.0

Compare
Choose a tag to compare
@sargue sargue released this 13 Jun 15:26
· 95 commits to master since this release
  • New fire and forget async send method. See Mail.sendAsync().
  • Some notable changes on the content generation helpers. More info
    in the wiki
    The main code for sending simple mails hasn't changed.
    TL;DR Don't use MailBuilder anymore, use Mail.bodyBuilder().

Migration guide:

Where you had

MailContent mailContent = new MailContent()
     [content stuff here]
     .close();

MailBuilder.using(configuration)
     .content(mailContent)
     [mail envelope stuff here]
     .build()
     .send();

You can translate it to this beauty:

Mail.using(configuration)
    .body()
    [content stuff here]
    .mail()
    [mail envelope stuff here]
    .build()
    .send();