Interface Mailer

All Known Implementing Classes:
AbstractMailer, JakartaMailer, JavaxMailer

public interface Mailer
Mailer interface.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Pattern
    Email address regex pattern.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    mail(String[] to, String subject, String html, String text)
    Mail.
  • Field Details

    • EMAIL_PATTERN

      static final Pattern EMAIL_PATTERN
      Email address regex pattern.
  • Method Details

    • mail

      void mail(String[] to, String subject, String html, String text) throws Exception
      Mail. HTML + TXT templates are served.
      Parameters:
      to - email receiver addresses
      subject - subject
      html - HTML contents
      text - text contents
      Throws:
      Exception - when mailing fails