This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using javamail how automaticmail send

 
Arun Vethadas .T
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
For mailing i'm using Javamail.
In database i have a date field(end date of issue).i want to send automatic mail when system date equals end date. How i do this in JSP.
checking with sysdate with date field and how the mail automatically send to the person. we have to write any bat file for automatic running of the mail file. or what how to do it? sample code please!!!
Thanks,
Arun.
 
Sathyanarayana G N
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What is OS you are working with?
If winNT, U can use Scheduler (AT.exe) which comes along with the OS.
Yes. You can make class file to send the mail and run that class file from a bat file or CMD file
Hope this is OK
Regards,
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic