Browse Source

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 years ago
committed by Rushabh Mehta
parent
commit
9dc3bec1a5
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/email/smtp.py

+ 1
- 0
frappe/email/smtp.py View File

@@ -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


Loading…
Cancel
Save