DEV: Add after_email_send app event (#20178)

This commit is contained in:
natiz 2023-02-15 18:23:45 +02:00 committed by GitHub
parent 4bfa130c3a
commit 9c30ae93b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,6 +294,8 @@ module Email
return skip(SkippedEmailLog.reason_types[:custom], custom_reason: e.message)
end
DiscourseEvent.trigger(:after_email_send, @message, @email_type)
email_log.save!
email_log
end