Forum Moderators: coopster

Message Too Old, No Replies

e-mail reminder

         

mRmONKEY

11:07 pm on Jul 2, 2004 (gmt 0)

10+ Year Member



iam making a mot reminder system where th user inputs there information on the website. then 10 days before the mot is due a e-mail is sent out 2 remind them 2 book there mot.

ive setup the data base and input form but i totaly stuck now no how 2 get the reminder 2 send out 10 days before there mot any help would be greatful

many thanks

jon

lorax

2:38 am on Jul 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need the server to intiate a script on a daily basis that checks the date against the target date, does its calculations, and if need be, sends the email. *nix servers have cron jobs. Win servers probably have something similar but I don't know what it's called. You'll need to simply set the cron job up (or have the server admin do it) to call your script once a day. The script will do the rest.

BTW - what's mot?

ZibingsPrez

2:39 am on Jul 3, 2004 (gmt 0)

10+ Year Member



Usually you'd setup a cron-tab to run a PHP script checking the database for anything to do. Would give you more info...but tbh, I've spent the whole day at Hersheypark, and I'm quite beat...

jamie

10:10 am on Jul 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



lorax,

i expect MOT stands for Ministry of Transport (UK), it is common term for the yearly inspections which cars in UK have to undergo to prove roadworthiness

mRmONKEY

1:05 pm on Jul 3, 2004 (gmt 0)

10+ Year Member



yeah my server has corn job ill have a play about and see what i can do cheers

ill let you know when iam stuck again wont be long i bet :)

ergophobe

4:01 pm on Jul 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




Win servers probably have something similar but I don't know what it's called.

The same question recently came up for me and I didn't know either. Turns out it's the

Windows Task Sceduler [microsoft.com]:

"You can schedule any script, program, or document to be invoked at any time or any interval, every day to once a year, and on events like system boot, user logon, or system idle."

See also
[iopus.com...]