Important
We are updating the images for OroCommerce version 6.1 to align with the latest changes in the back-office design. During this transition, some images may still show older versions. Thank you for your patience as we work to update all visuals to reflect these changes.
Events
On top on Symfony’s \Symfony\Component\Mailer\Event\MessageEvent
, OroEmailBundle introduces \Oro\Bundle\EmailBundle\Event\BeforeMessageEvent
.
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 \Oro\Bundle\EmailBundle\Mailer\Transport\Transport
wrapper before an email message is passed to the Symfony Mailer transport (e.g., Symfony\Component\Mailer\Transport\Transports
) that
detects which mailer transport should be used based on the X-Transport header.