dcsimg
Verifying the mail was sent (Waiting for TransportListener)
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: Verifying the mail was sent (Waiting for TransportListener)

Posted By:   John_Zukowski  
Posted On:   Wednesday, March 20, 2002 09:56 AM

Event notification is asynch.
About | Sitemap | Contact