|
||||||||||
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 info.magnolia.module.mail.templates.MgnlMultipartEmail
public abstract class MgnlMultipartEmail
A base class for sending mails with attachments. The class contains hierarchical structure of MimeMultipart and MimeBodyPart: - MimeMultipart multipartMixed - multipart/mixed -- MimeMultipart multipartRelated - multipart/related --- MimeBodyPart messageBodyPart - text/plain, text/html - the text part of email --- MimeBodyPart attachmentBodyPart - the attachments which are shown in text part of message -- MimeBodyPart attachmentBodyPart - attachments connected only like attachments in mail clients Date: Apr 1, 2006 Time: 9:00:35 PM
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.mail.internet.MimeMessage |
---|
javax.mail.internet.MimeMessage.RecipientType |
Field Summary | |
---|---|
protected javax.mail.internet.MimeMultipart |
multipartMixed
|
protected javax.mail.internet.MimeMultipart |
multipartRelated
|
Fields inherited from class info.magnolia.module.mail.templates.MgnlEmail |
---|
CHARSET_HEADER_STRING, CONTENT_TYPE, EMAIL_WITH_PERSONAL_PATTERN, log, TEXT_HTML_UTF, 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 | |
---|---|
MgnlMultipartEmail(MailTemplate template)
|
Method Summary | |
---|---|
javax.mail.internet.MimeBodyPart |
addAttachment(MailAttachment attachment)
|
javax.mail.internet.MimeMultipart |
getMailMultipart()
|
boolean |
isMultipart()
|
void |
setBody(String body)
|
Methods inherited from class info.magnolia.module.mail.templates.MgnlEmail |
---|
getContentType, getTemplate, isBodyNotSetFlag, setAttachments, setBccList, setBody, setBodyFromResourceFile, setBodyNotSetFlag, setCcList, setCharsetHeader, setFrom, setReplyToList, setSubject, setTemplate, setToList |
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 javax.mail.internet.MimeMultipart multipartMixed
protected javax.mail.internet.MimeMultipart multipartRelated
Constructor Detail |
---|
public MgnlMultipartEmail(MailTemplate template)
Method Detail |
---|
public boolean isMultipart()
public javax.mail.internet.MimeMultipart getMailMultipart()
public javax.mail.internet.MimeBodyPart addAttachment(MailAttachment attachment) throws MailException
addAttachment
in class MgnlEmail
MailException
public void setBody(String body) throws Exception
setBody
in class MgnlEmail
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |