Bladeren bron

fix: issue with sending emails

The sendmail functionality got broken in recent refactoring to the email
module. The call to sendmail was passing from_addr and to_addrs in the
wrong order. This has been fixed.

Issue #13292
version-14
Anand Chitipothu 4 jaren geleden
bovenliggende
commit
114bdb5721
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      frappe/email/doctype/email_queue/email_queue.py

+ 1
- 1
frappe/email/doctype/email_queue/email_queue.py Bestand weergeven

@@ -102,7 +102,7 @@ class EmailQueue(Document):


message = ctx.build_message(recipient.recipient) message = ctx.build_message(recipient.recipient)
if not frappe.flags.in_test: if not frappe.flags.in_test:
ctx.smtp_session.sendmail(recipient.recipient, self.sender, message)
ctx.smtp_session.sendmail(from_addr=self.sender, to_addrs=recipient.recipient, msg=message)
ctx.add_to_sent_list(recipient) ctx.add_to_sent_list(recipient)


if frappe.flags.in_test: if frappe.flags.in_test:


Laden…
Annuleren
Opslaan