brack3t / Djrill

[INACTIVE/UNMAINTAINED] Djrill is an email backend and new message class for Django users that want to take advantage of the Mandrill transactional email service from MailChimp.
BSD 3-Clause "New" or "Revised" License
319 stars 64 forks source link

Fix: Djrill assumes message content type is text #45

Closed crccheck closed 11 years ago

crccheck commented 11 years ago

If you followed the instructions at: https://docs.djangoproject.com/en/1.5/topics/email/#sending-alternative-content-types, djrill would send the body as 'text' instead of 'html', resulting in ugly emails. This feature has been documented as far back as Django 1.0.

This also fixes how auto_text could be set, but couldn't do anything. If you wanted to use auto_text=True, you would have to send a null body and then attach_alternative your real body. I didn't add a test case for this because they're like... orthogonal..., and gets into behavior testing vs unit testing.