• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

automatically scheduling e-mails from a website?

Hi

I have a website that has a calendar function that allows users to schedule events. How can I automatically schedule e-mails to be sent to the users the day before their event arrives? I’m using java servlets for the calendar and website running on Apache Tomcat with a MySQL database and I have Apache James mail server up and running fine. I just need the java code to automatically send the mail at a predefined time from the event. Help would be hugely appreciated,

thanks
0
aka_damo
Asked:
aka_damo
  • 3
  • 2
1 Solution
 
nauman_ahmedCommented:
What is the server environment?  For Windows,  you can write an exe to send user reminders and then schedule it using the Windows Task Schedular.  I am sure this can be doe for Non-Windows platform also.

Best,  Nauman.
0
 
aka_damoAuthor Commented:
Nauman,
The server environment is windows. I'll have a java file that will send emails to all users that have an event scheduled. Maybe I could set up a batch file to run the java file and schedule this to run with windows scheduler?

aka_damo
0
 
nauman_ahmedCommented:
You dont need a batch file at all.  You can schedule the EXE file.  But if your java file require some commandline parameters, then you will need to write the batch file.

Best, Nauman.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
aka_damoAuthor Commented:
Nauman,
It won't have any commandline parameters but I've no way of making an EXE from the java file. I've tried things like EXE4J and other free ones but I couldn't get them to work or they had splash screens saying that it was freeware and other rubbish. Is there any decent simple java EXE maker?

aka_damo
0
 
nauman_ahmedCommented:
I will recommend you write the batch file then and dont go for the .java to .exe makers.  If you have path variables set, everything will work smotth ;).  In the batch file, write the command that you use to run your java program and you will be all set.

-Nauman.
0
 
Saber37886661Commented:
The way i have done it before is actually a bit different, use Task Schedular to call a asp page which checks to see if anything is due to go out (i take it event times are stored in the database), then if it is, it emails it...it actually becomes a very simple page if done right, a couple of querries and send the email
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now