From 9dc3bec1a583b3866520617f7fd64452e5ba1af7 Mon Sep 17 00:00:00 2001 From: Sujit Maharjan Date: Mon, 19 Sep 2016 14:40:59 +0545 Subject: [PATCH] Fixed password decryption for outgoing email (#2067) Since the password was not decrypted, there was error in outgoing email (not from default). Added email_account.password = email_account.get_password() to decrypt the password. --- frappe/email/smtp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/frappe/email/smtp.py b/frappe/email/smtp.py index 0821a157a0..fdb49ab86b 100644 --- a/frappe/email/smtp.py +++ b/frappe/email/smtp.py @@ -58,6 +58,7 @@ def get_outgoing_email_account(raise_exception_not_set=True, append_to=None): frappe.OutgoingEmailError) if email_account: + email_account.password = email_account.get_password() email_account.default_sender = email.utils.formataddr((email_account.name, email_account.get("email_id"))) frappe.local.outgoing_email_account[append_to or "default"] = email_account