|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.mail.cos.CosMailSenderImpl
Simple implementation of SMTP mail sending on top of Jason Hunter's MailMessage class that's included in COS (com.oreilly.servlet).
Does not support any richer functionality than MailSender and SimpleMailMessage, therefore there's no optional richer interface like the JavaMailSender interface for the JavaMailSenderImpl implementation.
Does not support "replyTo" and "sentDate" fields; will consequently throw an exception when encountering either of those.
MailMessage
,
JavaMailSenderImpl
Constructor Summary | |
CosMailSenderImpl()
|
Method Summary | |
void |
send(SimpleMailMessage simpleMessage)
Send the given simple mail message. |
void |
send(SimpleMailMessage[] simpleMessages)
Send the given array of simple mail messages in batch. |
void |
setHost(java.lang.String host)
Set the SMTP mail host. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CosMailSenderImpl()
Method Detail |
public void setHost(java.lang.String host)
public void send(SimpleMailMessage simpleMessage) throws MailException
MailSender
send
in interface MailSender
simpleMessage
- the message to send
MailException
public void send(SimpleMailMessage[] simpleMessages) throws MailException
MailSender
send
in interface MailSender
simpleMessages
- the messages to send
MailException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |