profile: added email signature to outgoing mail and profile settings
diff --git a/support/doctype/support_ticket/support_ticket.py b/support/doctype/support_ticket/support_ticket.py
index 2639f3f..13bc888 100644
--- a/support/doctype/support_ticket/support_ticket.py
+++ b/support/doctype/support_ticket/support_ticket.py
@@ -100,8 +100,6 @@
Creates a new Communication record
"""
# add to Communication
- import email.utils
-
d = webnotes.doc('Communication')
d.subject = self.doc.subject
d.email_address = from_email or webnotes.user.name
@@ -112,6 +110,7 @@
d.save(1)
def set_lead_and_contact(self, d):
+ import email.utils
email_addr = email.utils.parseaddr(d.email_address)
# set contact
if self.doc.contact: