Package org.springframework.mail
Interface MailMessage
- All Known Implementing Classes:
 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.
- Since:
 - 1.1.5
 - Author:
 - Juergen Hoeller
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidsetReplyTo(String replyTo) voidsetSentDate(Date sentDate) voidsetSubject(String subject) voidvoidvoid 
- 
Method Details
- 
setFrom
- Throws:
 MailParseException
 - 
setReplyTo
- Throws:
 MailParseException
 - 
setTo
- Throws:
 MailParseException
 - 
setTo
- Throws:
 MailParseException
 - 
setCc
- Throws:
 MailParseException
 - 
setCc
- Throws:
 MailParseException
 - 
setBcc
- Throws:
 MailParseException
 - 
setBcc
- Throws:
 MailParseException
 - 
setSentDate
- Throws:
 MailParseException
 - 
setSubject
- Throws:
 MailParseException
 - 
setText
- Throws:
 MailParseException
 
 -