I am trying to send a mail using a Mail Bean. But the time taken is much. I am using gmails smtp server for the same. Can i do make a thread in the mail bean and run the send function through that thread?? Would the execution be returned back to the caller jsp page quickly and the mailer thread'd keep doing its task in background?? Is it possible?..
Can somebody propose a solution for this time problem?