public class EmailMessage extends MimeMessage implements Serializable
MimeMessage.RecipientTypecontent, contentStream, dh, flags, headers, modified, savedATTACHMENT, INLINE| Constructor and Description |
|---|
EmailMessage()
Default constructor.
|
EmailMessage(Session session)
Constructor with a Session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBcc(Address internetAddress)
Adding one bcc-address to the EmailMessage.
|
void |
addCc(Address internetAddress)
Adding one cc-address to the EmailMessage.
|
void |
addFrom(Address internetAddress)
Adding one from-address to the EmailMessage.
|
void |
addTo(Address internetAddress)
Adding one to-address to the EmailMessage.
|
protected Object |
clone()
Clone.
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
setContent(Object content,
String type)
Sets the content.
|
void |
setFrom(String senderEmail)
Sets the from address.
|
void |
setSubject(String subject)
Sets the subject.
|
void |
setSubject(String subject,
String charset)
Sets the subject.
|
void |
setUtf8Content(Object content)
Sets the utf8 content.
|
addFrom, 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 EmailMessage()
public EmailMessage(Session session)
session - the sessionpublic void addBcc(Address internetAddress) throws MessagingException
internetAddress - The InternetAddress-object.MessagingException - if an error occurs.public void addCc(Address internetAddress) throws MessagingException
internetAddress - The InternetAddress-object.MessagingException - if an error occurs.public void addFrom(Address internetAddress) throws MessagingException
internetAddress - The InternetAddress-object.MessagingException - if an error occurs.public void addTo(Address internetAddress) throws MessagingException
internetAddress - The InternetAddress-object.MessagingException - if an error occurs.protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - the clone not supported exception Object.clone()public void setContent(Object content, String type) throws MessagingException
setContent in interface PartsetContent in class MimeMessagecontent - the contenttype - the typeMessagingException - the messaging exceptionPart.setContent(java.lang.Object, java.lang.String)public void setFrom(String senderEmail) throws AddressException, UnsupportedEncodingException, MessagingException
senderEmail - the new fromAddressException - the address exceptionUnsupportedEncodingException - the unsupported encoding exceptionMessagingException - the messaging exceptionpublic void setSubject(String subject) throws MessagingException
setSubject in class MimeMessagesubject - the new subjectMessagingException - the messaging exceptionMessage.setSubject(java.lang.String)public void setSubject(String subject, String charset) throws MessagingException
setSubject in class MimeMessagesubject - the subjectcharset - the charsetMessagingException - the messaging exceptionMimeMessage.setSubject(java.lang.String, java.lang.String)public void setUtf8Content(Object content) throws MessagingException
content - the new utf8 contentMessagingException - the messaging exceptionPart.setContent(java.lang.Object, java.lang.String)Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.