Skip to content

Commit

Permalink
Merge pull request #45729 from frappe/mergify/bp/version-14-hotfix/pr…
Browse files Browse the repository at this point in the history
…-45686

fix: allow multiple email ids (backport #45686)
  • Loading branch information
ruthra-kumar authored Feb 5, 2025
2 parents 202693d + 2f33f6b commit d14acb4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,12 @@ def get_recipients_and_cc(customer, doc):
recipients = []
for clist in doc.customers:
if clist.customer == customer:
recipients.append(clist.billing_email)
if clist.billing_email:
for email in clist.billing_email.split(","):
recipients.append(email.strip())
if doc.primary_mandatory and clist.primary_email:
recipients.append(clist.primary_email)
for email in clist.primary_email.split(","):
recipients.append(email.strip())
cc = []
if doc.cc_to != "":
try:
Expand Down

0 comments on commit d14acb4

Please sign in to comment.