Docs / API / Mail

Mail

com.s8.meta.api.flow.mail

Outbound mail is a flow feature, not a sidecar SMTP client you wire yourself.

MailManager

sendMail(request)
SendMailS8Response sendMail(SendMailS8Request)

SendMailS8Request takes (boolean isOutOfFlow, S8MailComposing). The composing lambda receives an S8MailComposer with fluent HTML helpers: setDisplayedSender, setRecipient, setSubject, html_appendBaseElement.

Example

mail.java
flow.mail().sendMail(new SendMailS8Request(false, composer -> {
  composer.setDisplayedSender("App")
      .setRecipient("user@example.com")
      .setSubject("Welcome")
      .html_appendBaseElement("p", null, null, "Hello from S8");
}));