<p>There is <code>craft\mail\Mailer::EVENT_BEFORE_SEND</code>.</p>
<p>You can use the <a href="https://craftcms.com/docs/3.x/extend/events.html#event-code-generator" rel="nofollow noreferrer">Event Code Generator</a> to find out more</p>

CC BY-SA 4.0
2022-01-05T16:21:58.037Z
2022-01-05T16:21:58.037Z
Oli
<p>Is there an event that would be triggered every time email is being sent by Craft? So email message can be intercepted.</p>

<plugin-development><events>
Event triggered when Craft sends email
# Event triggered when Craft sends email

(Asked by: username_0 on 2022-01-05)

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

**Tags:** plugin-development, events

---

## 1 answers

### Answer by username_1 on 2022-01-05. Score: 3 | Accepted answer

There is `craft\mail\Mailer::EVENT_BEFORE_SEND`.

You can use the [Event Code Generator](https://craftcms.com/docs/3.x/extend/events.html#event-code-generator) to find out more


---

