Hello, I am trying my hands on a web application and i need the application to automatically send a mail at a particular set time from the database to corresponding e-mail address. message to be sent, header, recipient info and senders info would be read from the database. All i need is how to automatically initiate the sending of mail once that time is reached on the database.
Thank you in anticipation.
how to write a script that automatically sends a mail
Moderator: General Moderators
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: how to write a script that automatically sends a mail
Cron jobs perhaps?
http://en.wikipedia.org/wiki/Cron
http://en.wikipedia.org/wiki/Cron
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering