Dysan Posted June 9, 2008 Share Posted June 9, 2008 Hi, using PHP how do I program a script, so emails are sent to a list of users on a daily basis? Quote Link to comment https://forums.phpfreaks.com/topic/109419-automatically-send-emails-daily/ Share on other sites More sharing options...
.josh Posted June 9, 2008 Share Posted June 9, 2008 Make a script that connects to your database, queries for email addresses, and sends an email to them. Assuming that you have a mysql database, lookup php mysql functions for how to connect and query, and look into php's mail function. As far as sending it out daily, You will want to setup a cron job to run that script every day. Quote Link to comment https://forums.phpfreaks.com/topic/109419-automatically-send-emails-daily/#findComment-561263 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.