public class EmailWithAttachments extends EmailMessage
MimeMessage.RecipientTypecontent, contentStream, dh, flags, headers, modified, savedATTACHMENT, INLINE| Constructor and Description |
|---|
EmailWithAttachments()
Constructor for the EmailAttachments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachment(BodyPart part)
Adds an attachment to the EmailMessage.
|
void |
addAttachment(byte[] content,
String filename,
String mimetype)
Adds the attachment.
|
void |
addAttachment(DataHandler handler,
String filename)
Adds the attachment.
|
void |
addAttachment(File file)
Adds an attachment to the EmailMessage.
|
void |
addAttachment(File file,
String newFilename)
Adds an attachment to the EmailMessage.
|
MimeMultipart |
getMimeMultiPart()
Gets the MimeMultipart from the EmailAttachments.
|
addBcc, addCc, addFrom, addTo, clone, equals, hashCode, setContent, setFrom, setSubject, setSubject, setUtf8ContentaddFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, 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, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setText, setText, setText, updateHeaders, updateMessageID, writeTo, writeToaddRecipient, getFolder, getMessageNumber, isExpunged, match, setExpunged, setFlag, setMessageNumber, setRecipientpublic EmailWithAttachments()
throws MessagingException
MessagingException - if an error occurs.public void addAttachment(BodyPart part) throws MessagingException
part - The BodyPart to add to the EmailMessage.MessagingException - if an error occurs.public void addAttachment(byte[] content,
String filename,
String mimetype)
throws MessagingException
content - The bytearray with the content.filename - The new Filename for the attachment.mimetype - The mimetype.MessagingException - if an error occurs.public void addAttachment(DataHandler handler, String filename) throws MessagingException
handler - The DataHandler for the attachment.filename - The new Filename for the attachment.MessagingException - if an error occurs.public void addAttachment(File file) throws MessagingException
file - The file to add to the EmailMessage.MessagingException - if an error occurs.public void addAttachment(File file, String newFilename) throws MessagingException
file - The file to add to the EmailMessage.newFilename - The new Filename for the attachment.MessagingException - if an error occurs.public MimeMultipart getMimeMultiPart() throws MessagingException
MessagingException - if an error occurs.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.