org.springframework.mail
Class SimpleMailMessage
java.lang.Object
org.springframework.mail.SimpleMailMessage
- public class SimpleMailMessage
- extends java.lang.Object
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
- Version:
- $Id: SimpleMailMessage.java,v 1.7 2004/03/18 02:46:05 trisberg Exp $
- Author:
- Dmitriy Kopylenko, Juergen Hoeller
- See Also:
MailSender
,
JavaMailSender
,
MimeMessagePreparator
,
MimeMessageHelper
Method Summary |
java.lang.String[] |
getBcc()
|
java.lang.String[] |
getCc()
|
java.lang.String |
getFrom()
|
java.lang.String |
getSubject()
|
java.lang.String |
getText()
|
java.lang.String[] |
getTo()
|
void |
setBcc(java.lang.String bcc)
|
void |
setBcc(java.lang.String[] bcc)
|
void |
setCc(java.lang.String cc)
|
void |
setCc(java.lang.String[] cc)
|
void |
setFrom(java.lang.String from)
|
void |
setSubject(java.lang.String subject)
|
void |
setText(java.lang.String text)
|
void |
setTo(java.lang.String to)
|
void |
setTo(java.lang.String[] to)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleMailMessage
public SimpleMailMessage()
- Create new SimpleMailMessage.
SimpleMailMessage
public SimpleMailMessage(SimpleMailMessage original)
- Copy constructor.
setFrom
public void setFrom(java.lang.String from)
getFrom
public java.lang.String getFrom()
setTo
public void setTo(java.lang.String to)
setTo
public void setTo(java.lang.String[] to)
getTo
public java.lang.String[] getTo()
setCc
public void setCc(java.lang.String cc)
setCc
public void setCc(java.lang.String[] cc)
getCc
public java.lang.String[] getCc()
setBcc
public void setBcc(java.lang.String bcc)
setBcc
public void setBcc(java.lang.String[] bcc)
getBcc
public java.lang.String[] getBcc()
setSubject
public void setSubject(java.lang.String subject)
getSubject
public java.lang.String getSubject()
setText
public void setText(java.lang.String text)
getText
public java.lang.String getText()
toString
public java.lang.String toString()
Copyright (C) 2003-2004 The Spring Framework Project.