@Component(value="DefaultEmailDispatcher") public class EmailDispatcher extends Object implements GenericDispatcher<EmailMessage>
MimeType - type :- text/plain text/html text/richtext - Not Supported text/x-whatever - Not Supported text/xml - Not Supported multipart/related multipart/mixed multipart/digest - Not Supported multipart/parallel - Not Supported ... Others - Not Supported yet
| Modifier and Type | Field and Description |
|---|---|
protected static String[] |
BLANK_ARRAY |
protected static org.apache.commons.collections.Transformer |
EMAIL_ADD_TRANSFORMER |
protected org.springframework.mail.javamail.JavaMailSenderImpl |
mailSender |
| Constructor and Description |
|---|
EmailDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(EmailMessage message) |
void |
dispatch(EmailMessage message,
boolean addCC,
boolean addBCC) |
protected void |
setMailContent(org.springframework.mail.javamail.MimeMessageHelper helper,
EmailMessage message)
Set Mail content type and content based on
DisposableMessage.getContentType()Supports TEXT, HTML, Multipart (embedded images) If DisposableMessage.getContentType() is not specified then it assumes HTML type |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccept, getSettings, transformprotected org.springframework.mail.javamail.JavaMailSenderImpl mailSender
protected static final String[] BLANK_ARRAY
protected static final org.apache.commons.collections.Transformer EMAIL_ADD_TRANSFORMER
protected void setMailContent(org.springframework.mail.javamail.MimeMessageHelper helper,
EmailMessage message)
throws javax.mail.MessagingException
DisposableMessage.getContentType()DisposableMessage.getContentType() is not specified then it assumes HTML typehelper - as MimeMessageHelpermessage - as EmailMessagejavax.mail.MessagingExceptionpublic void dispatch(EmailMessage message, boolean addCC, boolean addBCC) throws javax.mail.MessagingException
message - as EmailMessageaddCC; - if using Bulk mode then should the CC list be added to the Main DisposableMessage.getRecipients() listaddBC; - if using Bulk mode then should the BCC list be added to the Main DisposableMessage.getRecipients() listCjavax.mail.MessagingExceptionpublic void dispatch(EmailMessage message) throws javax.mail.MessagingException
dispatch in interface GenericDispatcher<EmailMessage>javax.mail.MessagingExceptionCopyright © 2018. All rights reserved.