T
- as PayloadType (Any Object.toString() or Multipart
)public class EmailMessage<T> extends DisposableMessage<javax.mail.internet.InternetAddress,T>
DisposableMessage.getContentType()
Modifier and Type | Field and Description |
---|---|
protected List<javax.mail.internet.InternetAddress> |
BCCList
If not using bulk and want to show BCC addresses, use this
|
protected String |
BCCListStr
|
protected List<javax.mail.internet.InternetAddress> |
CCList
If not using bulk and want to show CC addresses, use this
|
protected String |
CCListStr
|
contentType, messageId, payload, priority, recipients
Constructor and Description |
---|
EmailMessage() |
EmailMessage(EmailMessage messageTemplate) |
EmailMessage(T payload) |
EmailMessage(T payload,
ContentType contentType) |
Modifier and Type | Method and Description |
---|---|
String |
getAttachehmentSuffix()
The suffix will be added to all attachments
to make it comply with standard naming contentions
|
List<javax.mail.internet.InternetAddress> |
getBCCList()
If not using bulk and want to show BCC addresses, use this
|
String |
getBCCListStr()
Setting comma separated EMAIL ADDRESSES in this appends to
BCCList but does not directly participate in any processing |
List<javax.mail.internet.InternetAddress> |
getCCList()
If not using bulk and want to show CC addresses, use this
|
String |
getCCListStr()
Setting comma separated EMAIL ADDRESSES in this appends to
CCList but does not directly participate in any processing |
Map<String,String> |
getHeaders() |
Collection<EmailMultiPartBuilder.Part> |
getParts() |
javax.mail.internet.InternetAddress |
getSourceAddress() |
String |
getSubject() |
String |
getUnsubscribeAction()
Allow the user to un subscribe from the email; usually used with Bulk mails
and considered good practice to provide the user the ability to un-subscribe.
|
boolean |
isAllowAttachments()
Allow or filter any Attachments
|
boolean |
isAllowHtml()
Keep or remove any HTML content
|
boolean |
isAttachImagesAsFiles()
All image parts will be added as attachments.
|
boolean |
isBulk()
If set to true, The message will be a Bulk blast / optimize accordingly and set appropriate RFC headers
Example see https://support.google.com/mail/bin/answer.py?hl=en&answer=81126#format
|
boolean |
isCanReply() |
boolean |
isEmbedImages()
All image parts will be embedded in the email
|
void |
setAllowAttachments(boolean allowAttachments)
Allow or filter any Attachments
|
void |
setAllowHtml(boolean allowHtml)
Keep or remove any HTML content
|
void |
setAttachehmentSuffix(String attachehmentSuffix)
The suffix will be added to all attachments
to make it comply with standard naming contentions
|
void |
setAttachImagesAsFiles(boolean attachImagesAsFiles)
All image parts will be added as attachments.
|
void |
setBCCList(List<javax.mail.internet.InternetAddress> bCCList)
If not using bulk and want to show BCC addresses, use this
|
void |
setBCCListStr(String bCCListStr)
Setting comma separated EMAIL ADDRESSES in this appends to
BCCList but does not directly participate in any processing |
void |
setBulk(boolean bulk)
If set to true, The message will be a Bulk blast / optimize accordingly and set appropriate RFC headers
Example see https://support.google.com/mail/bin/answer.py?hl=en&answer=81126#format
|
void |
setCanReply(boolean canReply) |
void |
setCCList(List<javax.mail.internet.InternetAddress> cCList)
If not using bulk and want to show CC addresses, use this
|
void |
setCCListStr(String cCListStr)
Setting comma separated EMAIL ADDRESSES in this appends to
CCList but does not directly participate in any processing |
void |
setEmbedImages(boolean embedImages)
All image parts will be embedded in the email
|
void |
setHeaders(Map<String,String> headers) |
void |
setParts(Collection<EmailMultiPartBuilder.Part> parts) |
void |
setSourceAddress(javax.mail.internet.InternetAddress sourceAddress) |
void |
setSubject(String subject) |
void |
setUnsubscribeAction(String unsubscribeAction)
Allow the user to un subscribe from the email; usually used with Bulk mails
and considered good practice to provide the user the ability to un-subscribe.
|
getContentType, getMessageId, getPayload, getPriority, getRecipients, setContentType, setMessageId, setPayload, setPriority, setRecipients
protected List<javax.mail.internet.InternetAddress> CCList
protected List<javax.mail.internet.InternetAddress> BCCList
protected transient String CCListStr
protected transient String BCCListStr
public EmailMessage()
public EmailMessage(EmailMessage messageTemplate) throws Exception
Exception
public EmailMessage(T payload)
public EmailMessage(T payload, ContentType contentType)
public javax.mail.internet.InternetAddress getSourceAddress()
public void setSourceAddress(javax.mail.internet.InternetAddress sourceAddress)
public String getSubject()
public void setSubject(String subject)
public boolean isBulk()
public void setBulk(boolean bulk)
public boolean isCanReply()
public void setCanReply(boolean canReply)
public Collection<EmailMultiPartBuilder.Part> getParts()
public void setParts(Collection<EmailMultiPartBuilder.Part> parts)
public String getAttachehmentSuffix()
public void setAttachehmentSuffix(String attachehmentSuffix)
public boolean isEmbedImages()
public void setEmbedImages(boolean embedImages)
public boolean isAttachImagesAsFiles()
allowAttachments
public void setAttachImagesAsFiles(boolean attachImagesAsFiles)
allowAttachments
public boolean isAllowAttachments()
public void setAllowAttachments(boolean allowAttachments)
public boolean isAllowHtml()
public void setAllowHtml(boolean allowHtml)
public String getUnsubscribeAction()
2369 - http://tools.ietf.org/search/rfc2369
public void setUnsubscribeAction(String unsubscribeAction)
2369 - http://tools.ietf.org/search/rfc2369
public List<javax.mail.internet.InternetAddress> getCCList()
public void setCCList(List<javax.mail.internet.InternetAddress> cCList)
public List<javax.mail.internet.InternetAddress> getBCCList()
public void setBCCList(List<javax.mail.internet.InternetAddress> bCCList)
public String getCCListStr()
CCList
but does not directly participate in any processingpublic void setCCListStr(String cCListStr) throws javax.mail.internet.AddressException
CCList
but does not directly participate in any processingjavax.mail.internet.AddressException
public String getBCCListStr()
BCCList
but does not directly participate in any processingCopyright © 2018. All rights reserved.