接口 MailMessage
- 所有已知实现类:
MimeMailMessage
,SimpleMailMessage
public interface MailMessage
This is a common interface for mail messages, allowing a user to set key values required in assembling a mail message, without needing to know if the underlying message is a simple text message or a more sophisticated MIME message.Implemented by both SimpleMailMessage and MimeMessageHelper, to let message population code interact with a simple message or a MIME message through a common interface.
- 从以下版本开始:
- 1.1.5
- 作者:
- Juergen Hoeller
- 另请参阅:
SimpleMailMessage
,MimeMessageHelper
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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)
方法详细资料
setFrom
void setFrom(String from) throws MailParseException
setReplyTo
void setReplyTo(String replyTo) throws MailParseException
setTo
void setTo(String to) throws MailParseException
setTo
void setTo(String[] to) throws MailParseException
setCc
void setCc(String cc) throws MailParseException
setCc
void setCc(String[] cc) throws MailParseException
setBcc
void setBcc(String bcc) throws MailParseException
setBcc
void setBcc(String[] bcc) throws MailParseException
setSentDate
void setSentDate(Date sentDate) throws MailParseException
setSubject
void setSubject(String subject) throws MailParseException
setText
void setText(String text) throws MailParseException