From cb6f96603b50491ac2a67c853a49dfd55c1aa749 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Wed, 22 Oct 2014 00:37:46 -0400 Subject: [PATCH] only multi-seat emails is html --- lms/djangoapps/shoppingcart/models.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/shoppingcart/models.py b/lms/djangoapps/shoppingcart/models.py index 4e821e0858..4864d930f9 100644 --- a/lms/djangoapps/shoppingcart/models.py +++ b/lms/djangoapps/shoppingcart/models.py @@ -312,7 +312,12 @@ class Order(models.Model): from_email=from_address, to=[recipient[1]] ) - email.content_subtype = "html" + + # only the business order is HTML formatted + # the single seat is simple text + if is_order_type_business: + email.content_subtype = "html" + if csv_file: email.attach(u'RegistrationCodesRedemptionUrls.csv', csv_file.getvalue(), 'text/csv') email.send()