Events auto-reminder x number of days before event

3 posts by 3 authors in: Forums > CMS Builder
Last Post: July 4, 2012   (RSS)

By Mikey - July 4, 2012

I'm building an events list for a website and I need to create a sign up form for site visitors to sign up to receive an auto-reminder email message X number of days before an event takes place. Has anyone build something like this that could shed some light on how to build it?

Thanks, Zick

Re: [zick] Events auto-reminder x number of days before event

By Jason - July 4, 2012

Hi Zick,

There are a number of ways you can approach this.

One options would be to have a list of signed up users stored in a "event alert" list in your event record. You then need a script that retrieves all events that meet your "X number of days before" condition and that have not already had an alert send.

You can then go through each of these events, and send an email to each person in the alert list. After your done, set a check box indicating that the alert was sent so you don't send the same alert multiple times.

After that, the only other decision to make is how to execute this function. You can set up a cron job to run it once a day, or you can create a plugin that runs each time a plugin hook is executed (init_complete for example)

Hope this helps get you started
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/