Some Help !!! send automatic 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
maceved23
Forum Newbie
Posts: 17
Joined: Sun Jul 13, 2003 11:56 pm

Some Help !!! send automatic mail ????????

Post by maceved23 »

Hi I´m developping an aplication, to post resumes un the WEB.

I have a quiestion, in my DB I have the date of registration for my users, now I need to send an automatic email to each user depending of the date of registration.

Example:

If a user send my form on 16-07-03, an automatic email telling him some news is recieved 2 months after the registrstion.

So each user is going to recieve the mail 2 months after the registration.

I think I need to have an aplication that cheks each day for example at 2am for my date of registration......

Could some one help me???????????

Thanks Mario

jamesm87
Forum Newbie
Posts: 21
Joined: Sat May 31, 2003 1:54 pm
Location: London, UK

Post by jamesm87 »

yes... its called a cron job. If you understand PHP and apache you can simply do it. If not your stuffed, or we could help ;-)
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

If you are currently setup on windows you can just make a PHP script that checks to see if it has been two months since a user has registered.

THEN, go to Start -> Accessories -> System Tools -> Schedule Task

and setup a task that opens up IE (or or whatever browser you use) and calls your PHP script.

You follow?
Post Reply