Permalink
Browse files

Initialize variable in Django email backend. Courtesy of Mac the Morgan.

  • Loading branch information...
1 parent 0c567c6 commit 1988fe8db2882fbd9698d1597b386ee92c386432 @themartorana committed Apr 15, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/postmark/django_backend.py
@@ -38,6 +38,7 @@ def _send(self, message):
try:
recipients = ','.join(message.to)
if message.__class__.__name__ == 'EmailMultiAlternatives':
+ html_body = None
for alt in message.alternatives:
if alt[1] == "text/html":
html_body=alt[0]

0 comments on commit 1988fe8

Please sign in to comment.