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(String... bcc) |
void |
setBcc(String bcc) |
void |
setCc(String... cc) |
void |
setCc(String cc) |
void |
setFrom(String from) |
void |
setReplyTo(String replyTo) |
void |
setSentDate(Date sentDate) |
void |
setSubject(String subject) |
void |
setText(String text) |
void |
setTo(String... to) |
void |
setTo(String to) |
void setFrom(String from) throws MailParseException
MailParseException
void setReplyTo(String replyTo) throws MailParseException
MailParseException
void setTo(String to) throws MailParseException
MailParseException
void setTo(String... to) throws MailParseException
MailParseException
void setCc(String cc) throws MailParseException
MailParseException
void setCc(String... cc) throws MailParseException
MailParseException
void setBcc(String bcc) throws MailParseException
MailParseException
void setBcc(String... bcc) throws MailParseException
MailParseException
void setSentDate(Date sentDate) throws MailParseException
MailParseException
void setSubject(String subject) throws MailParseException
MailParseException
void setText(String text) throws MailParseException
MailParseException