FEATURE: Add `before_email_send` event (PR #10081)

Plugins can use it to customize the message (e.g. add header) before the email is sent.

GitHub