diff --git a/sparkpost/django/message.py b/sparkpost/django/message.py index d737398..904b4d5 100644 --- a/sparkpost/django/message.py +++ b/sparkpost/django/message.py @@ -25,9 +25,13 @@ def __init__(self, message): formatted = { 'recipients': message.to, 'from_email': message.from_email, - 'subject': message.subject, - 'text': message.body + 'subject': message.subject } + + if message.content_subtype == 'html': + formatted['html'] = message.body + else: + formatted['text'] = message.body if message.cc: formatted['cc'] = message.cc