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