FEATURE: sparkpost webhook

This commit is contained in:
Vibol Hou
2016-09-26 22:13:34 -07:00
parent 4e663998af
commit 34af73c7cb
4 changed files with 49 additions and 0 deletions

View File

@ -139,6 +139,8 @@ module Email
@message.header['X-MJ-CustomID'] = @message.message_id
when "smtp.mandrillapp.com"
@message.header['X-MC-Metadata'] = { message_id: @message.message_id }.to_json
when "smtp.sparkpostmail.com"
@message.header['X-MSYS-API'] = { campaign_id: @message.message_id }.to_json
end
# Suppress images from short emails