utf-8 encode response message while sending email response message

This commit is contained in:
Anand Doshi 2012-01-19 11:48:43 +05:30
parent 32fd59b3ff
commit 367357fafd

View File

@ -36,7 +36,7 @@ class DocType(TransactionBase):
recipients = [self.doc.raised_by], \
sender=webnotes.conn.get_value('Email Settings',None,'support_email'), \
subject=subject, \
msg=response)
msg=response.encode('utf-8'))
self.doc.new_response = None
webnotes.conn.set(self.doc,'status','Waiting for Customer')