Skip to content

Commit

Permalink
fix: strip comma, space from recipients before sending email for auto…
Browse files Browse the repository at this point in the history
… repeat (#20940) (#20945)

(cherry picked from commit ab6e74e)

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
  • Loading branch information
mergify[bot] and phot0n committed May 9, 2023
1 parent bbe29ee commit 042a1d2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frappe/automation/doctype/auto_repeat/auto_repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,10 @@ def send_notification(self, new_doc):
elif "{" in self.message:
message = frappe.render_template(self.message, {"doc": new_doc})

recipients = self.recipients.split("\n")

frappe.sendmail(
reference_doctype=new_doc.doctype,
reference_name=new_doc.name,
recipients=recipients,
recipients=self.recipients,
subject=subject,
content=message,
attachments=attachments,
Expand Down

0 comments on commit 042a1d2

Please sign in to comment.