浏览代码

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.
version-14
Sujit Maharjan 8 年前
committed by Rushabh Mehta
父节点
当前提交
9dc3bec1a5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      frappe/email/smtp.py

+ 1
- 0
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


正在加载...
取消
保存