Closed toconnell closed 6 years ago
Recreated in dev with an "æ" character (just to do it).
Fixed:
@@ -226,7 +226,7 @@ class mailSession:
if reply_to is not None:
msg.add_header('reply-to', reply_to)
- msg.attach(MIMEText(html_msg,'html'))
+ msg.attach(MIMEText(html_msg.encode("utf-8"),'html'))
self.server.sendmail(self.no_reply, recipients, msg.as_string())
self.server.quit()
@@ -297,7 +297,7 @@ def record_response_time(view_name=None, tdelta=None):
# logger.info("Found and removed %s old response time records!" % removed_records["n"])
pass
From the render failure email:
Looks like we want to just hit that whole user text with a hammer and drop anything we can't convert, just so the email gets sent, etc.