profile: added email signature to outgoing mail and profile settings
This commit is contained in:
parent
ce0f4660ae
commit
1d49c61283
@ -100,8 +100,6 @@ class DocType(TransactionBase):
|
|||||||
Creates a new Communication record
|
Creates a new Communication record
|
||||||
"""
|
"""
|
||||||
# add to Communication
|
# add to Communication
|
||||||
import email.utils
|
|
||||||
|
|
||||||
d = webnotes.doc('Communication')
|
d = webnotes.doc('Communication')
|
||||||
d.subject = self.doc.subject
|
d.subject = self.doc.subject
|
||||||
d.email_address = from_email or webnotes.user.name
|
d.email_address = from_email or webnotes.user.name
|
||||||
@ -112,6 +110,7 @@ class DocType(TransactionBase):
|
|||||||
d.save(1)
|
d.save(1)
|
||||||
|
|
||||||
def set_lead_and_contact(self, d):
|
def set_lead_and_contact(self, d):
|
||||||
|
import email.utils
|
||||||
email_addr = email.utils.parseaddr(d.email_address)
|
email_addr = email.utils.parseaddr(d.email_address)
|
||||||
# set contact
|
# set contact
|
||||||
if self.doc.contact:
|
if self.doc.contact:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user