diff --git a/sparkpost/django/message.py b/sparkpost/django/message.py index d737398..03204c9 100644 --- a/sparkpost/django/message.py +++ b/sparkpost/django/message.py @@ -26,8 +26,12 @@ def __init__(self, message): 'recipients': message.to, 'from_email': message.from_email, 'subject': message.subject, - 'text': message.body } + + if message.content_subtype == 'html': + formatted['html'] = message.body + else: + formatted['text'] = message.body if message.cc: formatted['cc'] = message.cc