Posted By:
Jehan_Jaleel
Posted On:
Wednesday, March 13, 2002 04:54 PM
I have a JavaMail application that sends e-mail wrapped in a statelss session EJB. After the client calls the sendMail() method of my EJB I would like to confirm the mail was sent. So I would like to place the sendMail call in an conditional that checks this.. mailBean.sendMsg(); if (check boolean set by messageDeliverd) // continute else // Report mail error Would this work? Does the send() in Transport wait for the eventhandler to be called or is it asynchrnous to it? Thanks in advance for any help, Jehan
More>>
I have a JavaMail application that sends
e-mail wrapped in a statelss session EJB.
After the client calls the sendMail() method of my EJB I would like to confirm the mail was sent.
So I would like to place the sendMail call in an conditional that checks this..
mailBean.sendMsg();
if (check boolean set by messageDeliverd)
// continute
else
// Report mail error
Would this work? Does the send() in Transport wait for the eventhandler to be called or is it asynchrnous to it?
Thanks in advance for any help,
Jehan
<<Less