Forums

allauth email confirmation with error

I can sign up with 'allauth' email confirmation by laptop environment successly. But running the same code (almost, different only in settings.py ) here in the pA environment with error. What should I do specially here by pA? Thank you.

... smtplib.SMTPAuthenticationError: (534, b'5.7.14 https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=...xxx...\n5.7.14 ...\n5.7.14 ...\n5.7.14 N-...\n5.7.14 ... Please log in via your web browser and\n5.7.14 then try again.\n5.7.14 Learn more at\n5.7.14 https://support.google.com/mail/answer/xxx54 …xxx… - gsmtp')

Google do tend to block requests they view as suspicious or unexpected. If you log into your google account and find the "account security" page, you should be able to view the past blocked requests and (I think?) unblock them.

I've found the most reliable thing is actually to set up an "app-specific password" for my web apps that need to send email...

Double

I have previously changed the google less security, which is why I have no problem with laptop enviroment. I see that the Error is only when my Apps running from pA environment.

They tend to be a bit more tough on attempts to send stuff from cloud environments, as there are lots of people out there trying to use sites like ours and Amazon Web Services to send spam.

At the bottom of this help page there are some hints on what to do to work around this. The app-specific passwords that Harry suggests above seem to be the most effective.