Interface Mailer

All Known Implementing Classes:
AbstractMailer, JakartaMailer, JavaxMailer

public interface Mailer
Mailer interface.
  • Field Details

    • EMAIL_PATTERN

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

    • mail

      void mail(String[] to, String subject, Map<String,String> variables, String templateName, BeetRootHTTPSession session) throws Exception
      Mail. HTML + TXT templates are served.
      Parameters:
      to - email receiver addresses
      subject - subject
      variables - variables to parse in templates
      templateName - template name
      session - HTTP session or null if not called within a servlet context (default language used)
      Throws:
      Exception - exception