|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.mail.MailerImpl
public class MailerImpl
Maintains a Java Mail session and is used for sending e-mails.
Field Summary | |
---|---|
protected org.apache.log4j.Logger |
LOG
|
Constructor Summary | |
---|---|
MailerImpl()
|
Method Summary | |
---|---|
protected void |
prepareHtmlMessage(String messageText,
javax.mail.Message message)
|
void |
sendEmail(EmailFrom from,
EmailTo to,
EmailSubject subject,
EmailBody body,
boolean htmlMessage)
Send an email to a single recipient with the specified subject and message. |
void |
sendEmail(EmailFrom from,
EmailToList to,
EmailSubject subject,
EmailBody body,
EmailCcList cc,
EmailBcList bc,
boolean htmlMessage)
Send an email to the given "to", "cc", and "bcc" recipients with the specified subject and message. |
void |
sendEmail(MailMessage message)
Construct and a send simple email message from a Mail Message. |
protected void |
sendMessage(String from,
javax.mail.Address[] to,
String subject,
String messageBody,
javax.mail.Address[] cc,
javax.mail.Address[] bcc,
boolean htmlMessage)
Send an email to the given recipients with the specified subject and message. |
void |
setMailSender(org.springframework.mail.javamail.JavaMailSenderImpl mailSender)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public MailerImpl()
Method Detail |
---|
public void setMailSender(org.springframework.mail.javamail.JavaMailSenderImpl mailSender)
mailSender
- The injected Mail Sender.public void sendEmail(MailMessage message) throws javax.mail.MessagingException
sendEmail
in interface Mailer
message
- the Mail Message
javax.mail.MessagingException
public void sendEmail(EmailFrom from, EmailTo to, EmailSubject subject, EmailBody body, boolean htmlMessage)
sendEmail
in interface Mailer
from
- sender of the messageto
- list of addresses to which the message is sentsubject
- subject of the messagebody
- body of the messagepublic void sendEmail(EmailFrom from, EmailToList to, EmailSubject subject, EmailBody body, EmailCcList cc, EmailBcList bc, boolean htmlMessage)
sendEmail
in interface Mailer
from
- sender of the messageto
- list of addresses to which the message is sentsubject
- subject of the messagebody
- body of the messagecc
- list of addresses which are to be cc'd on the messagebc
- list of addresses which are to be bcc'd on the messageprotected void sendMessage(String from, javax.mail.Address[] to, String subject, String messageBody, javax.mail.Address[] cc, javax.mail.Address[] bcc, boolean htmlMessage) throws javax.mail.internet.AddressException, javax.mail.MessagingException, org.springframework.mail.MailException
from
- sender of the messageto
- list of addresses to which the message is sentsubject
- subject of the messagemessageBody
- body of the messagecc
- list of addresses which are to be cc'd on the messagebcc
- list of addresses which are to be bcc'd on the message
javax.mail.internet.AddressException
javax.mail.MessagingException
org.springframework.mail.MailException
protected void prepareHtmlMessage(String messageText, javax.mail.Message message) throws javax.mail.MessagingException
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |