fix(notification): ensure outgoing mail is set on comms (#24814)
This commit is contained in:
parent
f086b7febd
commit
c66d35fe5b
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue