Instruction part 1 – Enable event handling
To enable event handling in the Adminapp, execute the following steps:
- Go to:
Adminapp >> Event Settings - Create a Event Settings plugin.
- The Adminapp event bus will now receive events. At that point, no subscriber is configured.
Instruction part 2 – Add e-mail event subscriber
To create an event subscriber, execute the following steps:
- For the Event Settings plugin:
Create an E-Mail Event Subscriber (Adminapp) plugin. - Choose an Event.
- Configure the E-mail Service for sending the e-mail.
- Configure the Email Context Data Name with the source for the e-mail address where the notification is to be sent.
- Configure the Language Context Data Name with the source for the language of the e-mail template.
- Set the Default Language.
- Configure the Subject Resource Key with the template to be used for the e-mail.
- Configure the Body Resource Key with the template to be used for the e-mail.
- Optionally:
- Configure one or more Value Map Providers to use additional variables with the template.
- Optionally enable the Send As HTML feature.
- This consumer will handle one particular type of event and send an e-mail to the end-user mail-recipient for events triggered by the Adminapp module.