Mailgun: Support stored templates

Add support for Mailgun's new template option

Fixes #155
This commit is contained in:
Ansel Santosa
2019-07-30 10:50:42 -07:00
committed by Mike Edmunds
parent df3d577b41
commit 73a73ea01f
3 changed files with 9 additions and 9 deletions

View File

@@ -253,8 +253,8 @@ class MailgunPayload(RequestsPayload):
def set_track_opens(self, track_opens):
self.data["o:tracking-opens"] = "yes" if track_opens else "no"
# template_id: Mailgun doesn't offer stored templates.
# (The message body and other fields *are* the template content.)
def set_template_id(self, template_id):
self.data["template"] = template_id
def set_merge_data(self, merge_data):
# Processed at serialization time (to allow merging global data)