|
||||||||||
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 String |
CHARSET_HEADER_STRING
|
protected static String |
CONTENT_TYPE
|
protected static Pattern |
EMAIL_WITH_PERSONAL_PATTERN
|
static org.slf4j.Logger |
log
|
protected static String |
TEXT_HTML_UTF
|
protected static 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)
|
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)
|
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 String CONTENT_TYPE
protected static final String TEXT_PLAIN_UTF
protected static final String TEXT_HTML_UTF
protected static final String CHARSET_HEADER_STRING
protected static final Pattern EMAIL_WITH_PERSONAL_PATTERN
public static org.slf4j.Logger log
Constructor Detail |
---|
public MgnlEmail(MailTemplate template)
Method Detail |
---|
public abstract void setBody(String text) throws Exception
Exception
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)
public void setCharsetHeader(String charset) throws MailException
MailException
public void setToList(String list) throws Exception
Exception
public void setCcList(String list) throws Exception
Exception
public void setBccList(String list) throws Exception
Exception
public void setReplyToList(String list) throws Exception
Exception
public void setAttachments(List<MailAttachment> list) throws MailException
MailException
public javax.mail.internet.MimeBodyPart addAttachment(MailAttachment attachment) throws MailException
MailException
public void setBodyFromResourceFile() throws Exception
Exception
public String getContentType()
getContentType
in interface javax.mail.Part
getContentType
in class javax.mail.internet.MimeMessage
public void setBody() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |