Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Daily Mailing List using PHP/MySQL 2

Status
Not open for further replies.

Rekcor

Programmer
Feb 15, 2005
48
NL
Hi,

I want to make an automatic mailing system, which gets information from a MySQL database and sents it to a number of subscribers.

I know how to code everything, except one thing: the 'automatic' part. I don't want to go to my website each day and press a 'Send mail' button. What I want is a system which sends the mails itself, e.g. each day at 9 a.m.

Anybody an idea how to do this?

Regards,
Koos
 
What platform are you using?

If you're using any flavor of UN*X or Linux, use the cron to run your script on a schedule. If you're using Windows, there are ways of doing similar scheduling, but someone else will have to tell you, since I don't know them.

Ken
 
on windows you would add a scheduled task (in control panel). the task execution would be "c:/path/to/php.exe c:/path/to/php/script.php". once the scheduled task is created then right click on it and select advanced in order to set more flexible schedulings than the wizard provides.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top