You are browsing upcoming documentation for version 6.0 of OroCommerce, OroCRM, and OroPlatform, scheduled for release in 2024. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.
See our Release Process documentation for more information on the currently supported and upcoming releases.
On top on Symfony’s
\Symfony\Component\Mailer\Event\MessageEvent, OroEmailBundle introduces
Both events allow modifying an email message and an envelope, and the difference between them is in the point at which they do that.
BeforeMessageEvent is dispatched before MessageEvent and from the
wrapper before an email message is passed to the Symfony Mailer transport (e.g.,
detects which mailer transport should be used based on the X-Transport header.