public class MailMessageSender extends java.lang.Object implements MessageSender
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
MailMessageSender()
Default public constructor.
|
MailMessageSender(javax.mail.Session session)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.mail.internet.MimeMessage |
createMimeMessage(Message message)
Converts the message object to a mime message in order to prepare it to be sent.
|
void |
send(Message message)
Send the message.
|
void |
setMailSession(javax.mail.Session session)
Set javamail session.
|
public MailMessageSender()
public MailMessageSender(javax.mail.Session session)
session
- public void setMailSession(javax.mail.Session session)
session
- public void send(Message message) throws MessageException
send
in interface MessageSender
message
- the message to be sentMessageException
public javax.mail.internet.MimeMessage createMimeMessage(Message message) throws java.lang.Exception
message
- java.lang.Exception
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.