Page 1 of 1

Sending Emails

Posted: Mon May 08, 2006 7:18 am
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.

Posted: Mon May 08, 2006 7:24 am
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.