Sending Emails

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
MrSmartGuy
Forum Newbie
Posts: 2
Joined: Fri May 05, 2006 1:30 am

Sending Emails

Post by MrSmartGuy »

hi ,
i have a page which collects the the time in minutes , an email id ,a message box and a responce time which also collects the time in miutes.

i need a code which can send the emails to that email id for each time interval upto the responce time.

for example if the user enters 10 min's and gave a email id rama@yahoo.com and 2 hours in responce time .then code should be able to send the email message entered in the message box for every 10 mins to that emaild ID upto 2 hours.

it's very urgent.Help me ASAP

Thanks in Advance

Regards
Saish.
someberry
Forum Contributor
Posts: 172
Joined: Mon Apr 11, 2005 5:16 am

Post by someberry »

Store all those fields in a database. Set a cron to execute a file every minute which will determine which emails to send, and then send them. If they are past their 2 hour slot, then delete the record from the database, or set it to innactive.
Post Reply