public abstract class MgnlEmail
extends javax.mail.internet.MimeMessage
Modifier and Type | Field and Description |
---|---|
protected static String |
CHARSET_HEADER_STRING |
protected static String |
CONTENT_TYPE |
static org.slf4j.Logger |
log |
protected static String |
TEXT_HTML_UTF |
protected static String |
TEXT_PLAIN_UTF |
Constructor and Description |
---|
MgnlEmail(MailTemplate template) |
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeBodyPart |
addAttachment(MailAttachment attachment) |
String |
getContentType() |
MailTemplate |
getTemplate() |
boolean |
isBodyNotSetFlag() |
void |
setAttachments(List<MailAttachment> list) |
void |
setBccList(String list) |
void |
setBody() |
abstract void |
setBody(String text) |
void |
setBodyFromResourceFile() |
void |
setBodyNotSetFlag(boolean _bodyNotSetFlag) |
void |
setCcList(String list) |
void |
setCharsetHeader(String charset) |
void |
setFrom(String _from) |
void |
setReplyToList(String list) |
void |
setSubject(String arg0) |
void |
setTemplate(MailTemplate template) |
void |
setToList(String list) |
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo, writeTo
protected static final String CONTENT_TYPE
protected static final String TEXT_PLAIN_UTF
protected static final String TEXT_HTML_UTF
protected static final String CHARSET_HEADER_STRING
public static org.slf4j.Logger log
public MgnlEmail(MailTemplate template)
public void setSubject(String arg0) throws javax.mail.MessagingException
setSubject
in class javax.mail.internet.MimeMessage
javax.mail.MessagingException
public boolean isBodyNotSetFlag()
public void setBodyNotSetFlag(boolean _bodyNotSetFlag)
public void setTemplate(MailTemplate template)
public MailTemplate getTemplate()
public void setFrom(String _from)
setFrom
in class javax.mail.internet.MimeMessage
public void setCharsetHeader(String charset) throws MailException
MailException
public void setAttachments(List<MailAttachment> list) throws MailException
MailException
public javax.mail.internet.MimeBodyPart addAttachment(MailAttachment attachment) throws MailException
MailException
public String getContentType()
getContentType
in interface javax.mail.Part
getContentType
in class javax.mail.internet.MimeMessage
Copyright © 2020 Magnolia International Ltd.. All rights reserved.