org.springframework.mail
Class SimpleMailMessage
java.lang.Object
org.springframework.mail.SimpleMailMessage
- All Implemented Interfaces:
- Serializable
- public class SimpleMailMessage
- extends Object
- implements Serializable
Encapsulates properties of a simple mail such as from, to, cc,
subject, text. To be sent with a MailSender implementation.
Consider JavaMailSender and JavaMail MimeMessages for creating
more sophisticated messages, for example with attachments, special
character encodings, or personal names that accompany mail addresses.
- Since:
- 10.09.2003
- Author:
- Dmitriy Kopylenko, Juergen Hoeller
- See Also:
MailSender
,
JavaMailSender
,
MimeMessagePreparator
,
MimeMessageHelper
,
Serialized Form
SimpleMailMessage
public SimpleMailMessage()
- Create new SimpleMailMessage.
SimpleMailMessage
public SimpleMailMessage(SimpleMailMessage original)
- Copy constructor.
setFrom
public void setFrom(String from)
getFrom
public String getFrom()
setReplyTo
public void setReplyTo(String replyTo)
getReplyTo
public String getReplyTo()
setTo
public void setTo(String to)
setTo
public void setTo(String[] to)
getTo
public String[] getTo()
setCc
public void setCc(String cc)
setCc
public void setCc(String[] cc)
getCc
public String[] getCc()
setBcc
public void setBcc(String bcc)
setBcc
public void setBcc(String[] bcc)
getBcc
public String[] getBcc()
setSentDate
public void setSentDate(Date sentDate)
getSentDate
public Date getSentDate()
setSubject
public void setSubject(String subject)
getSubject
public String getSubject()
setText
public void setText(String text)
getText
public String getText()
toString
public String toString()
equals
public boolean equals(Object other)
hashCode
public int hashCode()
Copyright (C) 2003-2004 The Spring Framework Project.