Is there an event that would be triggered every time email is being sent by Craft? So email message can be intercepted.

1 Answer 1


There is craft\mail\Mailer::EVENT_BEFORE_SEND.

You can use the Event Code Generator to find out more

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.