public interface MailMessage
Implemented by both SimpleMailMessage and MimeMessageHelper, to let message population code interact with a simple message or a MIME message through a common interface.
SimpleMailMessage
,
MimeMessageHelper
Modifier and Type | Method and Description |
---|---|
void |
setBcc(java.lang.String bcc) |
void |
setBcc(java.lang.String[] bcc) |
void |
setCc(java.lang.String cc) |
void |
setCc(java.lang.String[] cc) |
void |
setFrom(java.lang.String from) |
void |
setReplyTo(java.lang.String replyTo) |
void |
setSentDate(java.util.Date sentDate) |
void |
setSubject(java.lang.String subject) |
void |
setText(java.lang.String text) |
void |
setTo(java.lang.String to) |
void |
setTo(java.lang.String[] to) |
void setFrom(java.lang.String from) throws MailParseException
MailParseException
void setReplyTo(java.lang.String replyTo) throws MailParseException
MailParseException
void setTo(java.lang.String to) throws MailParseException
MailParseException
void setTo(java.lang.String[] to) throws MailParseException
MailParseException
void setCc(java.lang.String cc) throws MailParseException
MailParseException
void setCc(java.lang.String[] cc) throws MailParseException
MailParseException
void setBcc(java.lang.String bcc) throws MailParseException
MailParseException
void setBcc(java.lang.String[] bcc) throws MailParseException
MailParseException
void setSentDate(java.util.Date sentDate) throws MailParseException
MailParseException
void setSubject(java.lang.String subject) throws MailParseException
MailParseException
void setText(java.lang.String text) throws MailParseException
MailParseException