Removed owner of the document from the BCC (#5401)
This commit is contained in:
parent
a8f9a652e1
commit
4c032eabbe
2 changed files with 2 additions and 6 deletions
|
|
@ -373,11 +373,6 @@ def get_bcc(doc, recipients=None, fetched_from_email_account=False):
|
|||
"""Build a list of email addresses for BCC"""
|
||||
bcc = split_emails(doc.bcc)
|
||||
|
||||
if doc.reference_doctype and doc.reference_name:
|
||||
if fetched_from_email_account:
|
||||
bcc.append(get_owner_email(doc))
|
||||
bcc += get_assignees(doc)
|
||||
|
||||
if bcc:
|
||||
exclude = []
|
||||
exclude += [d[0] for d in frappe.db.get_all("User", ["name"], {"thread_notify": 0}, as_list=True)]
|
||||
|
|
|
|||
|
|
@ -204,7 +204,8 @@ def get_email_queue(recipients, sender, subject, **kwargs):
|
|||
frappe.log_error('Invalid Email ID Sender: {0}, Recipients: {1}'.format(mail.sender,
|
||||
', '.join(mail.recipients)), 'Email Not Sent')
|
||||
|
||||
e.set_recipients(recipients + kwargs.get('cc', []) + kwargs.get('bcc', []))
|
||||
recipients = list(set(recipients + kwargs.get('cc', []) + kwargs.get('bcc', [])))
|
||||
e.set_recipients(recipients)
|
||||
e.reference_doctype = kwargs.get('reference_doctype')
|
||||
e.reference_name = kwargs.get('reference_name')
|
||||
e.add_unsubscribe_link = kwargs.get("add_unsubscribe_link")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue