Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (20 sloc) 1.716 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
ExponentCMS Calendar Event Reminders implementation

There are NO guarantees this may not open up security vulnerabilities on your site! Please use with caution!

After installation, you'll need to update/change the settings on the calendars you plan to use it with. Primarily this allows you to add the info needed about the mailouts.

To use, pull up the send_reminders.php file in a browser (or curl with cron, etc...) passing a calendar id number which can be found on the module configuration screen.
You can also pass other parameters, e.g.
http://www.mysite.org/cron/send_reminders.php?id=1
http://www.mysite.org/cron/send_reminders.php?id=1&view=_reminder_week
(or with curl)
curl -G -d "id=1&days=14" -s http://www.mysite.org/cron/send_reminders.php

The script responds with either an error or displays a copy of the sent e-mail contents.

Variables
id - id of calendar to use (mandatory)
view - name of template to use (defaults to using _reminder)
time - time/date to start from (defaults to now)
days - number of days of events to pull (defaults to 7)

Currently this script:
- adheres to aggregated/merged calendars
- uses the default (weekly) template of "_reminder" which pulls the next 7 days of events. I may add a daily template
- sends an html/text formatted message, but the text message isn't formatted very well, it's just the html less the tags
- only sends to the addresses selected in module settings which are selected from web site user profiles (think of it as the calendar owner). I may add the ability to address groups and freestyle address just like in private messages and forms. Not planning on adding a subscription option, but anything's possible.
Something went wrong with that request. Please try again.