Page 1 of 1

Sending emails automatically after 10 days

Posted: Sat Oct 11, 2003 9:38 am
by EverToDesign
Hey there, got a bit of a problem.

Im working on a website but a client wants it so that after 10 days a user is automatically emailed with a reminder.

In addition he has several newsletters he wants mailed automatically on certain days.

Additionally each user has an expiration date column in their record row. 15 days before this date he wants an email sent out automatically to the user notifying them of the upcoming expiration

is there anyway to some how schedual these autoamted tasks in PHP or what? How would I go about doing this?

Heh quick edit in response to jolly, I believe cron jobs aren't enabled so is there any other way?

ANd if cron jobs are enabled can someone explain them to me and how they work?

Posted: Sat Oct 11, 2003 10:57 am
by jollyjumper
Hi,

If you've got access to the cron jobs on your webserver(if it's a unix/linux server), you can use those to schedule your tasks.

Greetz Jolly.

Posted: Sat Oct 11, 2003 11:31 am
by jollyjumper
... don't know for sure if you can set cron jobs from within php though, but you could run a php script everyday which determines what actions should be executed.

Posted: Sat Oct 11, 2003 11:49 am
by jollyjumper
Hi,

What we also once did, but this isn't an ideal situation is using the scheduler on a windows system, that calls the php file through the internet once a day. But you need to be certain that the windows system is on once every day.

I can explain you how cron jobs work on monday, I've got a description at work. So if you haven't got an answer earlier than I will post it here.

Greetz Jolly.