Interface Emailer


public interface Emailer
An email service. Used for sending emails.
Author:
Alex Bogdanovski [[email protected]]
  • Method Details

    • sendEmail

      boolean sendEmail(List<String> emails, String subject, String body)
      Sends an email.
      Parameters:
      emails - a list of email addresses (recipients)
      subject - the subject of the message
      body - the body of the message
      Returns:
      true if the message was sent
    • sendEmail

      boolean sendEmail(List<String> emails, String subject, String body, InputStream attachment, String mimeType, String fileName)
      Sends an email.
      Parameters:
      emails - a list of email addresses (recipients)
      subject - the subject of the message
      body - the body of the message
      attachment - attachment
      mimeType - attachment MIME type
      fileName - attachment file name
      Returns:
      true if the message was sent