From 18b6c1d4e9e7c694c603b1ec552ae319907c7da4 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 6 Mar 2012 18:31:25 +0530 Subject: [PATCH] minor changes in support ticket --- erpnext/support/doctype/support_ticket/__init__.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/erpnext/support/doctype/support_ticket/__init__.py b/erpnext/support/doctype/support_ticket/__init__.py index 557dbaedfc..eebb6cf8f2 100644 --- a/erpnext/support/doctype/support_ticket/__init__.py +++ b/erpnext/support/doctype/support_ticket/__init__.py @@ -140,6 +140,7 @@ class SupportMailbox(POP3Mailbox): """ Send auto reply to emails """ + from webnotes.utils import cstr signature = self.email_settings.fields.get('support_signature') or '' response = self.email_settings.fields.get('support_autoreply') or (""" @@ -150,15 +151,15 @@ We will get back to you as soon as possible [This is an automatic response] - """ + signature) + """ + cstr(signature)) from webnotes.utils.email_lib import sendmail sendmail(\ - recipients = [d.raised_by], \ - sender = self.email_settings.support_email, \ - subject = '['+d.name+'] ' + cstr(d.subject), \ - msg = response) + recipients = [cstr(d.raised_by)], \ + sender = cstr(self.email_settings.fields.get('support_email')), \ + subject = '['+cstr(d.name)+'] ' + cstr(d.subject), \ + msg = cstr(response)) def auto_close_tickets(self): """