Kaynağa Gözat

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 yıl önce
committed by Rushabh Mehta
ebeveyn
işleme
9dc3bec1a5
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. +1
    -0
      frappe/email/smtp.py

+ 1
- 0
frappe/email/smtp.py Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet