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.
MailSender, org.springframework.mail.javamail.JavaMailSender , org.springframework.mail.javamail.MimeMessagePreparator , org.springframework.mail.javamail.MimeMessageHelper , org.springframework.mail.javamail.MimeMailMessage
| Modifier and Type | Field and Description |
|---|---|
| private String[] | |
| private String[] | |
| private String | |
| private String | |
| private Date | |
| private String | |
| private String | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SimpleMailMessage(SimpleMailMessage original)
Copy constructor for creating a new |
| Modifier and Type | Method and Description |
|---|---|
| private static String[] | |
| private static String[] | |
| public void | copyTo(MailMessage
the target)MailMessage to copy toCopy the contents of this message to the given target message. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String[] | |
| public String[] | |
| public String | |
| public String | |
| public Date | |
| public String | |
| public String | |
| public String[] | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| bcc | back to summary |
|---|---|
| private String[] bcc
| |
| cc | back to summary |
|---|---|
| private String[] cc
| |
| from | back to summary |
|---|---|
| private String from
| |
| replyTo | back to summary |
|---|---|
| private String replyTo
| |
| sentDate | back to summary |
|---|---|
| private Date sentDate
| |
| subject | back to summary |
|---|---|
| private String subject
| |
| text | back to summary |
|---|---|
| private String text
| |
| to | back to summary |
|---|---|
| private String[] to
| |
| SimpleMailMessage | back to summary |
|---|---|
| public SimpleMailMessage() Create a new | |
| SimpleMailMessage | back to summary |
|---|---|
| public SimpleMailMessage(SimpleMailMessage original) Copy constructor for creating a new | |
| copy | back to summary |
|---|---|
| private static String[] copy(String[] state) | |
| copyOrNull | back to summary |
|---|---|
private static String[] copyOrNull(String[] state)
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(MailMessage target) Copy the contents of this message to the given target message.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBcc | back to summary |
|---|---|
public String[] getBcc()
| |
| getCc | back to summary |
|---|---|
public String[] getCc()
| |
| getFrom | back to summary |
|---|---|
public String getFrom()
| |
| getReplyTo | back to summary |
|---|---|
public String getReplyTo()
| |
| getSentDate | back to summary |
|---|---|
public Date getSentDate()
| |
| getSubject | back to summary |
|---|---|
public String getSubject()
| |
| getText | back to summary |
|---|---|
public String getText()
| |
| getTo | back to summary |
|---|---|
public String[] getTo()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setBcc | back to summary |
|---|---|
| public void setBcc(String bcc) Implements org.
| |
| setBcc | back to summary |
|---|---|
| public void setBcc(String... bcc) Implements org.
| |
| setCc | back to summary |
|---|---|
| public void setCc(String cc) Implements org.
| |
| setCc | back to summary |
|---|---|
| public void setCc(String... cc) Implements org.
| |
| setFrom | back to summary |
|---|---|
| public void setFrom(String from) Implements org.
| |
| setReplyTo | back to summary |
|---|---|
| public void setReplyTo(String replyTo) Implements org.
| |
| setSentDate | back to summary |
|---|---|
| public void setSentDate(Date sentDate) Implements org.
| |
| setSubject | back to summary |
|---|---|
| public void setSubject(String subject) Implements org.
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Implements org.
| |
| setTo | back to summary |
|---|---|
| public void setTo(String to) Implements org.
| |
| setTo | back to summary |
|---|---|
| public void setTo(String... to) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |