Server Side automatic execution of send mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Server Side automatic execution of send mail

Post 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.
jslick
Forum Commoner
Posts: 35
Joined: Wed Jul 21, 2004 11:18 am

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sounds like you need to do some research into daily cron jobs or scheduled tasks, depending on your server OS.
Post Reply