Hi Guys,
I think we can use services offered by operating
system to invoke this program so that it can send mail
at specified time. like AT.
thanks,
Nick
--- Rajneesh Garg <[EMAIL PROTECTED]> wrote:
> Hi,
>
> You are quite right when u say that there should be
> a standalone class for this mail prog. Thia is
> actually what I have designed. I am calling this
> class in my servlet.
> I too agree with you that this class needs to be
> called at an appropraite time. however, I am not
> sure of the way of invoking this class at a
> particular hour.
>
> Regards,
> Rajneesh Garg
> ----- Original Message -----
> From: Andras Balogh
> To: [EMAIL PROTECTED]
> Sent: Friday, March 31, 2000 4:23 PM
> Subject: Re: Sending EMails AUTOMATICALLY thro'
> Servlets and JavaMail
>
>
> Hi,
>
> Reading your problem here is what i have thought:
>
> - i wouldn't write a servlet, i would rather have
> a standalone class
> - this can be invoked by the cron daemon (on Linux
> type systems)
> once a day or more than once a day.
>
> Hope it helps a little bit,
>
> Andras.
>
> ----- Original Message -----
> From: Rajneesh Garg
> To: [EMAIL PROTECTED]
> Sent: Friday, March 31, 2000 9:29 AM
> Subject: Sending EMails AUTOMATICALLY thro'
> Servlets and JavaMail
>
>
> 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.
> :-)
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html