T
- Template type; see Publisher
public 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
Publisher s, File s and InputStream s
if the content refers to any images, files then the content published by Publisher s 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, setTempDelayBetweenBatches
public <T> List<EmailMultiPartBuilder.Part> getEmailParts(Publisher[] mailContentPublishers, File[] images, File[] files, byte[][] rawStreams, String attachmentSuffix) throws Exception
Publisher
s, File
s and InputStream
s
Publisher
s 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 etcException
Copyright © 2018. All rights reserved.