SMTPConnectError

517 views
Skip to first unread message

Otuekong William

unread,
Apr 23, 2022, 7:26:09 PM4/23/22
to Django users
Hello guys,
I get the following error when trying to send mails to users after a successful registration on my app
"raise SMTPConnectError(code, msg)

Exception Type: SMTPConnectError at /register/
Exception Value: (421, b'Server busy, too many connections')

"
Any idea on how to go about this
my email settings configuration looks like this
EMAIL_BACKEND =  'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT= 587
EMAIL_HOST_USER = os.environ.get('EMAIL_USER')
EMAIL_HOST_PASSWORD= os.environ.get('EMAIL_PASS')
EMAIL_USE_TLS= True

Jason

unread,
Apr 24, 2022, 9:15:13 AM4/24/22
to Django users
how many emails are you sending out like this?

this really isn't a django or python issue, its a gmail/google concern and is tied to using this pretty heavily over other services (mailgun, sendgrid, etc)

Antonis Christofides

unread,
Apr 24, 2022, 2:12:18 PM4/24/22
to django...@googlegroups.com

Indeed, I don't know how it is nowadays, but a few years ago Gmail did not allow (or did not support) using it as a smarthost if all you had was a free account. This means that even if you get it to work it will stop working the next day or month.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f499a79a-16e7-43f7-86a9-bbefaa2c5b11n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages