Class MockEmailer
java.lang.Object
com.erudika.para.core.email.MockEmailer
- All Implemented Interfaces:
Emailer
Mock emailer implementation.
- Author:
- Alex Bogdanovski [[email protected]]
-
Field Summary
Fields inherited from interface Emailer
MAX_RECIPIENTS_PER_MESSAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Emailer
getFromEmail, getFromName, sendEmail, sendEmail, sendEmail, sendEmail, sendSingleBatch
-
Constructor Details
-
MockEmailer
public MockEmailer()Constructor.
-
-
Method Details
-
sendSingleBatch
public void sendSingleBatch(App app, List<String> emails, String subject, String body, jakarta.mail.util.ByteArrayDataSource attachment, String fileName) Description copied from interface:EmailerSends a single email message to a batch of email addresses (max. 100).- Specified by:
sendSingleBatchin interfaceEmailer- Parameters:
app- the app where mailer configuration is loaded fromemails- a list of email addresses (recipients)subject- the subject of the messagebody- the body of the messageattachment- attachmentfileName- attachment file name
-