Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-05T16:21:58.037Z
Answers.LastActivityDate: 2022-01-05T16:21:58.037Z
Answers.UserDisplayName: Oli
Body: <p>Is there an event that would be triggered every time email is being sent by Craft? So email message can be intercepted.</p>
  
Tags: <plugin-development><events>
Title: Event triggered when Craft sends email
ThreadText: # 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
  
  
  ---
  
  