public class MailMessageSender extends Object implements MessageSender
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
Copyright © 2024 OpenMRS Inc.. All rights reserved.