OroNotificationBundle extends the OroEmailBundle capabilities and enables the email notification feature in Oro applications. It provides the UI and CLI tool to send and manage email notifications.
Command to send maintenance notification emails.
message- message to insert into email body. Optional.
file- path to the text file with message. Optional.
subject- email subject. Optional. If not provided, email subject from default maintenance template is used.
sender_name- sender name. Optional. If not provided, sender name from Notification Rules configuration is used.
sender_email- sender email. Optional. If not provided, sender email from Notification Rules configuration is used.
To send notifications on production servers --env=prod option should be added to use production email settings.
Notification Rule creation
System > Emails > Notification Rules > Create Notification Rule
In order to create Notification Rule you should specify:
- Entity Name
- Event Name (Entity create, Entity remove, Entity update, Workflow transition)
You can get List of predefined templates or create one from System > Emails > Templates
Also you should to choose at least one recipient from
Recipient list group:
- Additional Associations
- Contact Emails
Additional Associations and
Contact Emails depends on selected
Contact Emails allows to check recepients stored in entity fields marked as
Contact Information >
After rule was created, after firing specified in it events will be created jobs for consumer to submit emails chosen in
Recipient list group.
Please check that consumer is running.