Page 1 of 1

Server Side automatic execution of send mail

Posted: Thu Aug 12, 2004 12:02 am
by anjanesh
This is something that is really puzzling me.
I have a list of people in the db which contains their date of birth
I need a method such that when the current day is their birthday an autmatical mail is sent to them.
Obviouly this cannot be based on client-server requests. It has to been done totally on the server even when no page is being requested.
So I need an executable to have this work ? Will hosts allow it ? shell_exec() allowed on hosts ?
Is there a solution to this ? I've seen this work in other sites but I dont how its done.

Posted: Thu Aug 12, 2004 12:07 am
by jslick
I didn't know it was possible. I don't think you can do it with PHP. But, then again, I'm definately not an expert at PHP.

Posted: Thu Aug 12, 2004 12:10 am
by feyd
sounds like you need to do some research into daily cron jobs or scheduled tasks, depending on your server OS.