Automated java mail
1 posts in topic
Flat View  Flat View

Posted By:   srinivas_katkuri
Posted On:   Saturday, October 20, 2001 05:43 AM

How Can I send an automated mails by using javamail.
One mail should be sent auomatically at every day by taking the mail addresses from any database.
In Database, I will store all the mail addresses...

Plese send the reply
to my mail

Re: Automated java mail

Posted By:   Chhavindra_Gautam  
Posted On:   Saturday, October 20, 2001 10:52 PM

Use Javamail API in a servlet and compare the previous date and time system date and as soon as as soon as system date is greater than previous date and time send mail.

Second method is use a while loop and call Thread.sleep(24*60*60*60*1000)
then send mail.

About | Sitemap | Contact