mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FEATURE: mailjet webhook
This commit is contained in:
parent
1e2bad135f
commit
fe595f1653
4 changed files with 62 additions and 10 deletions
|
@ -133,6 +133,11 @@ module Email
|
|||
@message.header['X-Discourse-Post-Id'] = nil if post_id.present?
|
||||
@message.header['X-Discourse-Reply-Key'] = nil if reply_key.present?
|
||||
|
||||
# it's the only way to pass the original message_id when using mailjet
|
||||
if ActionMailer::Base.smtp_settings[:address][".mailjet.com"]
|
||||
@message.header['X-MJ-CustomID'] = @message.message_id
|
||||
end
|
||||
|
||||
# Suppress images from short emails
|
||||
if SiteSetting.strip_images_from_short_emails &&
|
||||
@message.html_part.body.to_s.bytesize <= SiteSetting.short_email_length &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue