|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.Message javax.mail.internet.MimeMessage info.magnolia.module.mail.templates.MgnlEmail
public abstract class MgnlEmail
Base class to send emails using Magnolia. Date: Mar 30, 2006 Time: 1:01:37 PM
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
---|
javax.mail.internet.MimeMessage.RecipientType |
Field Summary | |
---|---|
protected static java.lang.String |
CHARSET_HEADER_STRING
|
protected static java.lang.String |
CONTENT_TYPE
|
protected static java.util.regex.Pattern |
EMAIL_WITH_PERSONAL_PATTERN
|
static org.slf4j.Logger |
log
|
protected static java.lang.String |
TEXT_HTML_UTF
|
protected static java.lang.String |
TEXT_PLAIN_UTF
|
Fields inherited from class javax.mail.internet.MimeMessage |
---|
content, contentStream, dh, flags, headers, modified, saved |
Fields inherited from class javax.mail.Message |
---|
expunged, folder, msgnum, session |
Fields inherited from interface javax.mail.Part |
---|
ATTACHMENT, INLINE |
Constructor Summary | |
---|---|
MgnlEmail(MailTemplate template)
|
Method Summary | |
---|---|
javax.mail.internet.MimeBodyPart |
addAttachment(MailAttachment attachment)
|
java.lang.String |
getContentType()
|
MailTemplate |
getTemplate()
|
boolean |
isBodyNotSetFlag()
|
void |
setAttachments(java.util.List<MailAttachment> list)
|
void |
setBccList(java.lang.String list)
|
void |
setBody()
|
abstract void |
setBody(java.lang.String text)
|
void |
setBodyFromResourceFile()
|
void |
setBodyNotSetFlag(boolean _bodyNotSetFlag)
|
void |
setCcList(java.lang.String list)
|
void |
setCharsetHeader(java.lang.String charset)
|
void |
setFrom(java.lang.String _from)
|
void |
setReplyToList(java.lang.String list)
|
void |
setSubject(java.lang.String arg0)
|
void |
setTemplate(MailTemplate template)
|
void |
setToList(java.lang.String list)
|
Methods inherited from class javax.mail.internet.MimeMessage |
---|
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, 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 |
Methods inherited from class javax.mail.Message |
---|
addRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String CONTENT_TYPE
protected static final java.lang.String TEXT_PLAIN_UTF
protected static final java.lang.String TEXT_HTML_UTF
protected static final java.lang.String CHARSET_HEADER_STRING
protected static final java.util.regex.Pattern EMAIL_WITH_PERSONAL_PATTERN
public static org.slf4j.Logger log
Constructor Detail |
---|
public MgnlEmail(MailTemplate template)
Method Detail |
---|
public abstract void setBody(java.lang.String text) throws java.lang.Exception
java.lang.Exception
public void setSubject(java.lang.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(java.lang.String _from)
public void setCharsetHeader(java.lang.String charset) throws MailException
MailException
public void setToList(java.lang.String list) throws java.lang.Exception
java.lang.Exception
public void setCcList(java.lang.String list) throws java.lang.Exception
java.lang.Exception
public void setBccList(java.lang.String list) throws java.lang.Exception
java.lang.Exception
public void setReplyToList(java.lang.String list) throws java.lang.Exception
java.lang.Exception
public void setAttachments(java.util.List<MailAttachment> list) throws MailException
MailException
public javax.mail.internet.MimeBodyPart addAttachment(MailAttachment attachment) throws MailException
MailException
public void setBodyFromResourceFile() throws java.lang.Exception
java.lang.Exception
public java.lang.String getContentType()
getContentType
in interface javax.mail.Part
getContentType
in class javax.mail.internet.MimeMessage
public void setBody() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |