views:

281

answers:

2

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 = '[email protected]'
EMAIL_HOST_PASSWORD = '*secret*'
EMAIL_USE_TLS = True
+2  A: 

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.

Franci Penov
Paul Tarjan
No, I am not aware of other venues to get support from Google. Well, you could always look for a-friend-of-a-friend-type connection to a Google employee. Or ping Matt Cutts on Twitter. :-)Unfortunately, with Google Apps you get what you paid for. And for free/$50-a-year, you don't get that much of support.
Franci Penov
A: 

The maximum limit for sending emails for a given email account per day is 3000. But it is unlikely that you are sending as many emails every day. Even the error message isn't indicating that.

While, the resolution to the actual question can only be resolved by google, the way to circumvent this problem may be by setting up different email users, and choosing one at random.

Lakshman Prasad
Yeah, there is no way I hit 3000, maybe 30 at most.Maybe I should just give up on sending through gmail and do it directly through SMTP...
Paul Tarjan