|
Hello,
I am working on a project involving servlets. Here,
I am required to send an email at a particular hour of the day.
I know how to send an email using JavaMail.
However, sending an email at a particular time, is giving me problems. I have
written a small email program which can send the emails at a particular hour of
the day. However, it occurs only when the servlet is running.
I have added this program to the JWS also. here
too, I have mentioned that servlet be loaded automatically at the time of start
up. However, it is not giving the desired results. Please help me in
it.
Do I need to have a thread running all the times in
background which will calculate the time, and will subsequently send the emails?
I have not been able to implement this thread. However, at the same moment, I
think it will be too costly to have a thread running in the background,
calculating the time. What should be the optimised approach?
Any pointers in this directions, with or without
helping code, will be highly helpful.
Regards,
Rajneesh Garg
Keep Smiling. It does improve your face
value. :-)
|
- Re: Sending EMails AUTOMATICALLY thro' Servlets and Ja... Rajneesh Garg
- Re: Sending EMails AUTOMATICALLY thro' Servlets a... Andras Balogh
- Re: Sending EMails AUTOMATICALLY thro' Servle... Rajneesh Garg
- Re: Sending EMails AUTOMATICALLY thro' Servlets a... Sven E. van 't Veer
- Re: Sending EMails AUTOMATICALLY thro' Servlets a... Ajai Peddapanga
- Re: Sending EMails AUTOMATICALLY thro' Servlets a... Juraj Kazda
- Re: Sending EMails AUTOMATICALLY thro' Servlets a... Nick
