diff --git a/lib/email/sender.rb b/lib/email/sender.rb index 8cd3c613fd2..df3d519c139 100644 --- a/lib/email/sender.rb +++ b/lib/email/sender.rb @@ -209,6 +209,8 @@ module Email email_log.message_id = @message.message_id + DiscourseEvent.trigger(:before_email_send, @message, @email_type) + begin @message.deliver_now rescue *SMTP_CLIENT_ERRORS => e