alapimba Posted January 5, 2011 Share Posted January 5, 2011 Hello I have a mysql database with users and birthday. I'd like to set a cronjob to send an e-mail on the aniversary of each one. Can i do a script in php and the cron job execute it? If not how can i do this? Anyone can help? THanks Link to comment https://forums.phpfreaks.com/topic/223476-cron-job-to-send-birthday-e-mail/ Share on other sites More sharing options...
jake2891 Posted January 5, 2011 Share Posted January 5, 2011 yeah if you write a php script that connects to the database loops through records and finds a match for a birthday on that day it would mail them. just create a cron job to run your php script once a day in the morning or something. Link to comment https://forums.phpfreaks.com/topic/223476-cron-job-to-send-birthday-e-mail/#findComment-1155192 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.