Closed (fixed)
Project:
Recurring Events
Version:
2.0.x-dev
Component:
Recurring Events (Main module)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Jun 2021 at 10:45 UTC
Updated:
14 Sep 2021 at 20:54 UTC
Jump to comment: Most recent
Comments
Comment #2
owenbush commentedHey Cameron,
It certainly could do this I would guess. I would need to think about how and where the configuration for that lives, whether it is a global config (for example to send an email x hours/days before all events), an event type config (for example to send an email x hours/days before a specific type of event), or an event specific config (for example to send an email x hours/days before a particular event).
Comment #3
cameroncrobinson commentedI would think that having it event specific would good since it would most likely vary by series.
Comment #4
owenbush commentedHey Cameron, just to let you know I've started work on this. The branch open on gitlab so far contains the fields necessary to set up the reminders for an event series in a new submodule called recurring_events_reminders. It is storing the data as necessary, but nothing much else yet. The next step is to set up a cron task to loop through all the upcoming events and check whether there are reminders to send out, once a reminder is set we will also need to store a value in the database to indicate an email has been sent, to prevent a duplicate email being sent.
Hopefully I can get this buttoned up over the next week or so.
Comment #5
owenbush commentedComment #7
owenbush commentedI have finally finished putting together the changes to support a reminder email.
PLEASE BACKUP YOUR DATABASE BEFORE RUNNING THIS, AS THERE ARE SOME DATA STORAGE CHANGES MADE TO THE EMAIL NOTIFICATIONS.
Once you have patched/downloaded the latest version, then please run database updates first, this will convert the old way of storing notification configuration to the new way.
After that, you can enable the recurring_events_reminders submodule which will add some extra fields to event series. These fields allow you to configure how long before the start of the event instances a reminder should be sent, and allows you to write a tokenized message to send.
There are also changes made to the registrant settings in the admin, that allow you to enable/disable reminders globally, configure the subject, and also configure the message that gets sent. To use the message from the series, you need to use the token [eventseries:reminder_message].
You could in this way do something like this:
So you can wrap the series specific reminder message with some generic global reminder verbiage. Or if you choose, do not use the reminder_message at all and send something globally for all events.
Please let me know how this works out for you.
Patch URL: https://git.drupalcode.org/project/recurring_events/-/merge_requests/19....
Comment #8
owenbush commentedComment #11
owenbush commentedThis has been merged. Thanks for raising the issue.