Sending emails automatically after 10 days

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
EverToDesign
Forum Newbie
Posts: 10
Joined: Sat Oct 11, 2003 9:38 am

Sending emails automatically after 10 days

Post 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?
Last edited by EverToDesign on Sat Oct 11, 2003 10:59 am, edited 1 time in total.
jollyjumper
Forum Contributor
Posts: 107
Joined: Sat Jan 25, 2003 11:03 am

Post 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.
jollyjumper
Forum Contributor
Posts: 107
Joined: Sat Jan 25, 2003 11:03 am

Post 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.
jollyjumper
Forum Contributor
Posts: 107
Joined: Sat Jan 25, 2003 11:03 am

Post 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.
Post Reply