public class MailMessage
extends Object
implements Serializable
Constructor and Description |
---|
MailMessage() |
MailMessage(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
String subject,
String body,
boolean htmlFormat) |
MailMessage(javax.mail.internet.InternetAddress from,
String subject,
String body,
boolean htmlFormat) |
Modifier and Type | Method and Description |
---|---|
void |
addFileAttachment(File file) |
void |
addFileAttachment(File file,
String fileName) |
javax.mail.internet.InternetAddress[] |
getBCC() |
String |
getBody() |
javax.mail.internet.InternetAddress[] |
getBulkAddresses() |
javax.mail.internet.InternetAddress[] |
getCC() |
List<FileAttachment> |
getFileAttachments() |
javax.mail.internet.InternetAddress |
getFrom() |
boolean |
getHTMLFormat() |
String |
getInReplyTo() |
javax.mail.internet.InternetHeaders |
getInternetHeaders() |
String |
getMessageId() |
javax.mail.internet.InternetAddress[] |
getReplyTo() |
SMTPAccount |
getSMTPAccount() |
String |
getSubject() |
javax.mail.internet.InternetAddress[] |
getTo() |
boolean |
isHTMLFormat() |
void |
setBCC(javax.mail.internet.InternetAddress bcc) |
void |
setBCC(javax.mail.internet.InternetAddress[] bcc) |
void |
setBody(String body) |
void |
setBulkAddresses(javax.mail.internet.InternetAddress[] bulkAddresses) |
void |
setCC(javax.mail.internet.InternetAddress cc) |
void |
setCC(javax.mail.internet.InternetAddress[] cc) |
void |
setFrom(javax.mail.internet.InternetAddress from) |
void |
setHTMLFormat(boolean htmlFormat) |
void |
setInReplyTo(String inReplyTo) |
void |
setInternetHeaders(javax.mail.internet.InternetHeaders internetHeaders) |
void |
setMessageId(String messageId) |
void |
setReplyTo(javax.mail.internet.InternetAddress[] replyTo) |
void |
setSMTPAccount(SMTPAccount account) |
void |
setSubject(String subject) |
void |
setTo(javax.mail.internet.InternetAddress to) |
void |
setTo(javax.mail.internet.InternetAddress[] to) |
public MailMessage()
public MailMessage(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress to, String subject, String body, boolean htmlFormat)
public MailMessage(javax.mail.internet.InternetAddress from, String subject, String body, boolean htmlFormat)
public void addFileAttachment(File file)
public void addFileAttachment(File file, String fileName)
public javax.mail.internet.InternetAddress[] getBCC()
public String getBody()
public javax.mail.internet.InternetAddress[] getBulkAddresses()
public javax.mail.internet.InternetAddress[] getCC()
public List<FileAttachment> getFileAttachments()
public javax.mail.internet.InternetAddress getFrom()
public boolean getHTMLFormat()
public String getInReplyTo()
public javax.mail.internet.InternetHeaders getInternetHeaders()
public String getMessageId()
public javax.mail.internet.InternetAddress[] getReplyTo()
public SMTPAccount getSMTPAccount()
public String getSubject()
public javax.mail.internet.InternetAddress[] getTo()
public boolean isHTMLFormat()
public void setBCC(javax.mail.internet.InternetAddress bcc)
public void setBCC(javax.mail.internet.InternetAddress[] bcc)
public void setBody(String body)
public void setBulkAddresses(javax.mail.internet.InternetAddress[] bulkAddresses)
public void setCC(javax.mail.internet.InternetAddress cc)
public void setCC(javax.mail.internet.InternetAddress[] cc)
public void setFrom(javax.mail.internet.InternetAddress from)
public void setHTMLFormat(boolean htmlFormat)
public void setInReplyTo(String inReplyTo)
public void setInternetHeaders(javax.mail.internet.InternetHeaders internetHeaders)
public void setMessageId(String messageId)
public void setReplyTo(javax.mail.internet.InternetAddress[] replyTo)
public void setSMTPAccount(SMTPAccount account)
public void setSubject(String subject)
public void setTo(javax.mail.internet.InternetAddress to)
public void setTo(javax.mail.internet.InternetAddress[] to)