Michael Wohlfart [
http://community.jboss.org/people/mwohlf] created the discussion
"Re: About MailSessionImpl"
To view the discussion, visit:
http://community.jboss.org/message/561775#561775
--------------------------------------------------------------
You can use your own mail session by implementing the
org.jbpm.pvm.internal.email.spi.MailSession interface and leaving out the <mail-session
/> tag in your jbpm.cfg.xml, instead provide a <object
class="your.own.MailSessionImpl"> each time a mail needs to be send the
MailSession.send(Collection<Message> emails) method will be called and you can do
whatever you want with the emails. Extending jBPM4's MailSessionImpl is a bit more
tricky, you somehow need to inject the mailServers as far as i can tell, best take a look
at the MailSessionBinding to check how this can be done.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/561775#561775]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]