Automated Mail System

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Tejas
Forum Newbie
Posts: 1
Joined: Wed Sep 02, 2009 4:49 am

Automated Mail System

Post 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
User avatar
Salaria
Forum Commoner
Posts: 34
Joined: Fri Feb 13, 2009 2:50 am
Location: India
Contact:

Re: Automated Mail System

Post 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.
SikoSoft
Forum Newbie
Posts: 6
Joined: Wed Sep 09, 2009 9:16 am

Re: Automated Mail System

Post by SikoSoft »

Cronjobs all the way.

I don't know how the heck people live without them. I use them for everything! :D
mrjameswong
Forum Newbie
Posts: 6
Joined: Thu Aug 13, 2009 10:14 pm

Re: Automated Mail System

Post by mrjameswong »

This is great stuff. thanks

-James
Post Reply