When someone RSVP's to a virtual event, how do I get the system to send the attendee an email 2 days before an event to remind them that it's coming up and give them the option to cancel or confirm attendance and then how do I get the system to send them an email 2 hours before the event including the event location link (as set up under 'locations'?
Our site is memberpress/buddyboss and everyone's profile is linked to an email address.
I can see this in my editor but where exactly can I customise *when* the email is sent out and what is contained in the email?
I need to make sure the email is sent out 2 days before the event to either confirm or cancel the attendance and in the email 2 hours before the event I need to make sure the email itself includes a link to the virtual event location I set up with the event.
The remind date is set to 2 days before the event in the hook I've sent you here:
You can use {{event_permalink}} placeholder for the event permalink. E.g.:
If you need more control over the content you can check the mail function in src\includes\class.mail.php
Inside this function there are filters for the subject and the content:
You can use the "stec_send_reminder_content" filter to create more specific content directly via php.
Example:
/**
* Filter the email content that is sent to the user
* @param string $content The email content
* @param integer $remind_id The reminder id ( see src\includes\posts\class.post-stec_remind.php )
*/
add_filter('stec_send_reminder_content', function($content, $remind_id) {
$new_content = "..."; // your new email content
return $new_content;
}, 10 ,2);
Hi there,
When someone RSVP's to a virtual event, how do I get the system to send the attendee an email 2 days before an event to remind them that it's coming up and give them the option to cancel or confirm attendance and then how do I get the system to send them an email 2 hours before the event including the event location link (as set up under 'locations'?
Our site is memberpress/buddyboss and everyone's profile is linked to an email address.
Thanks for the help,
Saskia
Hi,
The users themselves must request a reminder via the event reminder option.
It is possible to implement automatic reminders by inserting custom code (hook) into your theme or child-theme's (recommended) functions.php file.
I am attaching the code to a file.
Attached files: Attendance auto add remind.zip
Stachethemes Developer
Hi there,
So when someone subscribes for a reminder - how do I customise when that email is sent and what the contents of it are?
Thanks so much,
Saskia
From Calendar Dashboard -> Settings -> Email Notifications -> Reminders.
Stachethemes Developer
Hi Zhivko,
I can see this in my editor but where exactly can I customise *when* the email is sent out and what is contained in the email?
I need to make sure the email is sent out 2 days before the event to either confirm or cancel the attendance and in the email 2 hours before the event I need to make sure the email itself includes a link to the virtual event location I set up with the event.
Thanks,
Saskia
The remind date is set to 2 days before the event in the hook I've sent you here:
You can use {{event_permalink}} placeholder for the event permalink. E.g.:
If you need more control over the content you can check the mail function in src\includes\class.mail.php
Inside this function there are filters for the subject and the content:
You can use the "stec_send_reminder_content" filter to create more specific content directly via php.
Example:
Stachethemes Developer