mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 05:03:39 +08:00
DEV: Add after_email_send
app event (#20178)
This commit is contained in:
parent
4bfa130c3a
commit
9c30ae93b3
|
@ -294,6 +294,8 @@ module Email
|
||||||
return skip(SkippedEmailLog.reason_types[:custom], custom_reason: e.message)
|
return skip(SkippedEmailLog.reason_types[:custom], custom_reason: e.message)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
DiscourseEvent.trigger(:after_email_send, @message, @email_type)
|
||||||
|
|
||||||
email_log.save!
|
email_log.save!
|
||||||
email_log
|
email_log
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user