daily email notification

the mail() function

Moderators: macek, egami, gesf

absolut
New php-forum User
New php-forum User
Posts: 2
Joined: Wed May 14, 2008 3:01 pm

daily email notification

Postby absolut » Wed May 14, 2008 3:07 pm

the computer will subtract today's date from the date that is stored in database
then, the computer will send an email everyday before the date that is stored in database..
example
its only 3 days and the poll will be closed

please help...

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Re: daily email notification

Postby Alexej Kubarev » Mon May 19, 2008 8:58 pm

either you make a pseudo cronjob with php, or a real cronjob serverside.
Cron job will call the script which will send emails and stuff you need to do.

For pseudo cronjobs, check how phpBB for isntance implemented it for prunning

absolut
New php-forum User
New php-forum User
Posts: 2
Joined: Wed May 14, 2008 3:01 pm

Re: daily email notification

Postby absolut » Wed May 28, 2008 9:33 pm

thanks for the reply, code examples please.. I'm noob in php..

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Re: daily email notification

Postby Alexej Kubarev » Wed May 28, 2008 11:17 pm

For pseudo cronjobs, check how phpBB for isntance implemented it for prunning


as in go in to www.phpbb.com, download latest version and look around.
If you dont know anything about PHP, start off with basics before you go into more advanced tasks.


Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron