org.camunda.bpm.cycle.service.mail.spi
Interface MailSessionProvider
- All Known Implementing Classes:
- DefaultMailSessionProvider
public interface MailSessionProvider
- Author:
- Daniel Meyer
lookupMailSession
javax.mail.Session lookupMailSession()
- Looks up the mail session using the configured name in
CycleConfiguration.getMailSessionName().
- Returns:
- the mail
Session
- Throws:
CycleException - if no mail session can be looked up
sendMail
void sendMail(javax.mail.Message msg,
javax.mail.Session mailSession)
- Ends the message using a transport at the discretion of the
MailSessionProvider.
- Parameters:
mailSession - the - message
- Throws:
CycleException - if the Message cannot be send.
Copyright © 2014 camunda services GmbH. All rights reserved.