| java.lang.Object | |
| ↳ | org.springframework.mail.SimpleMailMessage |
Models a simple mail message, including data such as the from, to, cc, subject, and text fields.
Consider JavaMailSender and JavaMail MimeMessages for creating
more sophisticated messages, for example messages with attachments, special
character encodings, or personal names that accompany mail addresses.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
SimpleMailMessage. | |||||||||||
Copy constructor for creating a new
SimpleMailMessage from the state
of an existing SimpleMailMessage instance. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Copy the contents of this message to the given target message.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.mail.MailMessage
| |||||||||||
Create a new SimpleMailMessage.
Copy constructor for creating a new SimpleMailMessage from the state
of an existing SimpleMailMessage instance.
| IllegalArgumentException | if the supplied message is null
|
|---|
Copy the contents of this message to the given target message.
| target | the MailMessage to copy to |
|---|
| IllegalArgumentException | if the supplied target is null
|
|---|