Skip to content

Email Notification when a New Event is Scheduled #253

Discussion options

You must be logged in to vote

Hello @prager

I think the easiest option is to setup a custom module in Craft CMS:
How to Build a Module | Craft CMS Documentation | 4.x

Within your custom module, you can listen for events. In this case, you would listen for the Calendars SaveElementEvent event. The SaveElementEvent event will contain the Event details and whether it's new or existing.

I would suggest using Queues/Jobs for performance, so you don't freeze up the Craft CMS Control Panel.

Within the job, you then make use of Craft CMS's built in mail service:
Queue Jobs | Craft CMS Documentation | 4.x
Email | Craft CMS Documentation | 4.x

Non-tested of what it might look like:

Event::on(
    \Solspace\Calendar\Services\Eve…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kjmartens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants