Jump to content

trying to write an application that sends out reminder emails


maddie2120

Recommended Posts

Hi could someone point me in the right direction, I'm trying to write an application that sends out reminder emails to clients who need to renew their qualifications online.  Does anyone know of an automated script or one that could be adapted and used.

 

Any help would be greatly appreciated.

 

Maddie

Link to comment
Share on other sites

Hi,

Store reminder date into database. on page load always check reminder date. if today date is equal to reminder date, shoot email.

Let me know if there is still any issue.

Thanks

 

As delickate said, a db field is the way to go.

 

His method for sending would work also, but what if no one opens the page that day? The email would never be triggered. IMO, the better way would be a cron job (cron jobs on apache, scheduled tasks on IIS- if my memory serves.)

 

Just my 2 cents  ;D

Link to comment
Share on other sites

Hi thanks for the help, yes I think the cron job idea is the way to go.  Does anyone know of any scripts already out there that can be tweaked for individual use?

 

A cron job runs a script. You would need to write the script to send the emails, and set up a cron job to run it. Most of the time this is done in an admin dashboard, but can be done in command line also.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.