Every few days, google apps starts rejecting my username and password with :
SMTPAuthenticationError: (535, '5.7.1 Username and Password not accepted. Learn more at\n5.7.1 http://mail.google.com/support/bin/answer.py?answer=14257 22sm439603yxe.15')
If I go to the google apps login page and try my password, it asks for a captcha. Filling it out correctly, now allows me to send email again for a few days until this happens again.
How can I stop this from happening? Has anyone else seen this when sending automated emails through google apps?
I'm sending registration emails from my website using these settings in django :
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'metaward@metaward.com'
EMAIL_HOST_PASSWORD = '*secret*'
EMAIL_USE_TLS = True
You should throttle your requests to an acceptable rate for Google Apps.
I am not sure if Google has an official statement/guidance about what is the acceptable request rate, though. If you can't find any such public statement/guidance, you should contact Google Apps support to see if you can get it through there.