added automatic lead creation for sales email id

This commit is contained in:
Rushabh Mehta 2013-01-16 12:19:27 +05:30
parent 9afc85c89c
commit ffcbfebfd6

View file

@ -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)