T - Template type; see Publisherpublic class MailerService extends MailerService
MailerService more suited for ecom integration scenarios of using templates & ContentDescriber from CMS.emailDispatcher, numEmailsPerBatch, sendLimitDurationUnit, serverMailLimitPerLongDuration, tempDelayBetweenBatches| Constructor and Description |
|---|
MailerService() |
| Modifier and Type | Method and Description |
|---|---|
<T> List<EmailMultiPartBuilder.Part> |
getEmailParts(Publisher[] mailContentPublishers,
File[] images,
File[] files,
byte[][] rawStreams,
String attachmentSuffix)
Convenience method to construct mail parts from basic constructs like
Publishers, Files and InputStreams
if the content refers to any images, files then the content published by Publishers should refer to it by cid:Base-File-Name. |
protected void |
handlePartException(Exception e)
By Default if there is an issue in any part break the process and report it.
|
constructEmailMessageFromTemplate, constructEmailMessageFromTemplate, constructEmailMessageFromTemplate, deriveAttachmentId, getEmailDispatcher, getNumEmailsPerBatch, getSendLimitDurationUnit, getServerMailLimitPerLongDuration, getTempDelayBetweenBatches, onBatchEnd, onBatchException, onBatchStart, onMailSend, sendMail, sendMailBuffered, setEmailDispatcher, setNumEmailsPerBatch, setSendLimitDurationUnit, setServerMailLimitPerLongDuration, setTempDelayBetweenBatchespublic <T> List<EmailMultiPartBuilder.Part> getEmailParts(Publisher[] mailContentPublishers, File[] images, File[] files, byte[][] rawStreams, String attachmentSuffix) throws Exception
Publishers, Files and InputStreams
Publishers should refer to it by cid:Base-File-Name.
In the case of byte[] in the content we can refer to the stream by cid:stream-#0, cid:stream-#1 etcExceptionCopyright © 2018. All rights reserved.