fix(notification): ensure outgoing mail is set on comms (#24814)

This commit is contained in:
David Arnold 2024-02-27 12:17:46 +01:00 committed by GitHub
parent f086b7febd
commit c66d35fe5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -282,6 +282,9 @@ def get_context(context):
bcc=bcc,
communication_type="Automated Message",
).get("name")
# set the outgoing email account because we did in fact send it via sendmail above
comm = frappe.get_doc("Communication", communication)
comm.get_outgoing_email_account()
frappe.sendmail(
recipients=recipients,