Class MockEmailer

java.lang.Object
com.erudika.para.core.email.MockEmailer
All Implemented Interfaces:
Emailer

public class MockEmailer extends Object implements Emailer
Author:
Alex Bogdanovski [[email protected]]
  • Constructor Details

    • MockEmailer

      public MockEmailer()
      Constructor.
  • Method Details

    • sendEmail

      public boolean sendEmail(List<String> emails, String subject, String body)
      Description copied from interface: Emailer
      Sends an email.
      Specified by:
      sendEmail in interface Emailer
      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

      public boolean sendEmail(List<String> emails, String subject, String body, InputStream attachment, String mimeType, String fileName)
      Description copied from interface: Emailer
      Sends an email.
      Specified by:
      sendEmail in interface Emailer
      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