Automated Email Issue

Hi,

Auto-emails of delivery notes, sales orders seem to be not working. Any similar issues or fixes?

Any error in Error Log?

I believe the error may stem from the addition of 2-step verification on gmail. I have read though a google troubleshoot guide. Any tips or instructions to fix this?

frappe.email.queue.flush

(530, ‘5.5.1 Authentication Required. Learn more at\n5.5.1 https://support.google.com/mail/?p=WantAuthError v9sm76674wmg.41 - gsmtp’, u’Anthony Turner grant.traynor@switchdin.com’)
Traceback (most recent call last):
File “/home/frappe/benches/bench-2017-08-09/apps/frappe/frappe/email/queue.py”, line 399, in send_one
smtpserver.sess.sendmail(email.sender, recipient.recipient, encode(message))
File “/usr/lib64/python2.7/smtplib.py”, line 735, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
SMTPSenderRefused: (530, ‘5.5.1 Authentication Required. Learn more at\n5.5.1 https://support.google.com/mail/?p=WantAuthError v9sm76674wmg.41 - gsmtp’, u’Anthony Turner grant.traynor@switchdin.com’)

Use App Passwords for gmail, they are one time passwords for each client and does not require 2 factor authentication