public interface MailSessionProvider
Modifier and Type | Method and Description |
---|---|
javax.mail.Session |
lookupMailSession()
Looks up the mail session using the configured name in
CycleConfiguration.getMailSessionName() . |
void |
sendMail(javax.mail.Message msg,
javax.mail.Session mailSession)
Ends the message using a transport at the discretion of the
MailSessionProvider . |
javax.mail.Session lookupMailSession()
CycleConfiguration.getMailSessionName()
.Session
CycleException
- if no mail session can be looked upvoid sendMail(javax.mail.Message msg, javax.mail.Session mailSession)
MailSessionProvider
.mailSession
- the
- messageCycleException
- if the Message cannot be send.Copyright © 2015. All rights reserved.