|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.
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
- message to send
MailException
- in case of message, authentication or send errorspublic void send(SimpleMailMessage[] simpleMessages) throws MailException
MailSender
send
in interface MailSender
simpleMessages
- messages to send
MailException
- in case of message, authentication or send errors
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |