Hello ERPNext Community,
I have error in Email Alert 
I want to send email when new record is submitted, this is what I do for Leave Application doctype
When I try to submit any record this error is shown up /
Traceback (most recent call last):
File β/home/omar/thkom-bench/apps/frappe/frappe/desk/form/save.pyβ, line 19, in savedocs
doc.submit()
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 683, in submit
self._submit()
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 672, in _submit
self.save()
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 242, in save
return self._save(*args, **kwargs)
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 286, in _save
self.run_post_save_methods()
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 731, in run_post_save_methods
self.run_method(βon_submitβ)
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 661, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 839, in composer
return composed(self, method, *args, **kwargs)
File β/home/omar/thkom-bench/apps/frappe/frappe/model/document.pyβ, line 824, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File β/home/omar/thkom-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.pyβ, line 189, in trigger_email_alerts
evaluate_alert(doc, alert, eevent)
File β/home/omar/thkom-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.pyβ, line 213, in evaluate_alert
alert.send(doc)
File β/home/omar/thkom-bench/apps/frappe/frappe/email/doctype/email_alert/email_alert.pyβ, line 127, in send
attachments = [frappe.attach_print(doc.doctype, doc.name)] if self.attach_print else None)
File β/home/omar/thkom-bench/apps/frappe/frappe/init.pyβ, line 394, in sendmail
send_after=send_after, expose_recipients=expose_recipients, send_priority=send_priority, communication=communication)
File β/home/omar/thkom-bench/apps/frappe/frappe/email/queue.pyβ, line 53, in send
email_account = get_outgoing_email_account(True, append_to=reference_doctype)
File β/home/omar/thkom-bench/apps/frappe/frappe/email/smtp.pyβ, line 62, in get_outgoing_email_account
email_account = get_default_outgoing_email_account(raise_exception_not_set=raise_exception_not_set)
File β/home/omar/thkom-bench/apps/frappe/frappe/email/smtp.pyβ, line 92, in get_default_outgoing_email_account
email_account.password = email_account.get_password()
File β/home/omar/thkom-bench/apps/frappe/frappe/model/base_document.pyβ, line 598, in get_password
return get_decrypted_password(self.doctype, self.name, fieldname, raise_exception=raise_exception)
File β/home/omar/thkom-bench/apps/frappe/frappe/utils/password.pyβ, line 16, in get_decrypted_password
return decrypt(auth[0][0])
File β/home/omar/thkom-bench/apps/frappe/frappe/utils/password.pyβ, line 101, in decrypt
plain_text = cstr(cipher_suite.decrypt(encode(pwd)))
File β/home/omar/thkom-bench/env/local/lib/python2.7/site-packages/cryptography/fernet.pyβ, line 103, in decrypt
raise InvalidToken
InvalidToken
Need Help
Thanks