added automatic lead creation for sales email id
This commit is contained in:
parent
9afc85c89c
commit
ffcbfebfd6
1 changed files with 3 additions and 0 deletions
|
|
@ -75,6 +75,9 @@ def send_comm_email(d, name, sent_via=None, print_html=None, attachments='[]', s
|
|||
if hasattr(sent_via, "get_content"):
|
||||
d.content = sent_via.get_content(d)
|
||||
|
||||
if not d.sender:
|
||||
d.sender = webnotes.session.user
|
||||
|
||||
from webnotes.utils.email_lib.smtp import get_email
|
||||
mail = get_email(d.recipients, sender=d.sender, subject=d.subject,
|
||||
msg=d.content)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue