Page 1 of 1

Automated Mail System

Posted: Wed Sep 02, 2009 5:30 am
by Tejas
Hello,
I need to make an php based automated mail system for my project. It should allow the user to schedule mails to be sent in the future.So my line of thinking is this.

A php based webpage could be created with the mail form (to,subj,body etc)
when sent, these details would get entered in the server's database.
Now on the server, there can be an php script which periodically checks the databse to see if there is any pending mail and accordingly dispatch it using php.
Is my thinking correct or could you suggest better methods of implementation.

thanks,
Tejas

Re: Automated Mail System

Posted: Wed Sep 02, 2009 6:30 am
by Salaria
Hi,

For this you have to set CRON jobs (LINUX/UNIX) or Schedule tasks on Windows to run PHP script to send emails on scheduled time frame.

I think this will help. If you want more info then feel free to reply here.

Re: Automated Mail System

Posted: Wed Sep 09, 2009 9:20 am
by SikoSoft
Cronjobs all the way.

I don't know how the heck people live without them. I use them for everything! :D

Re: Automated Mail System

Posted: Wed Sep 09, 2009 11:21 pm
by mrjameswong
This is great stuff. thanks

-James