Browse Source

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 years ago
parent
commit
114bdb5721
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/email/doctype/email_queue/email_queue.py

+ 1
- 1
frappe/email/doctype/email_queue/email_queue.py View File

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

message = ctx.build_message(recipient.recipient)
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)

if frappe.flags.in_test:


Loading…
Cancel
Save