Forums

SMTP2Go : [Errno 111] Connection refused - used for forgot password

I'm getting Errno 111 on my log in pythonanywhere and my forgot password feature is not working when I deploy it here..

     EMAIL_USE_TLS = True
      DEFAULT_FROM_EMAIL = 'test@pythonanywhere.com'
      SERVER_EMAIL = 'test@pythonanywhere.com'
      EMAIL_HOST = 'mail.smtp2go.com'
      EMAIL_PORT = 2525
     EMAIL_HOST_USER = '<my-smtp2go-user>'
     EMAIL_HOST_PASSWORD = '<my-smtp2go-pass>'
     EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

If you are a free users, you can only access sites on our whitelist. If what you are accessing is a public api, show us the documentation and we can add it to the whitelist for you!

I use SMTP2GO.com to send mail in forgot password. what do you mean by showing the documentation? I'm just a free user.

Does SMTP2GO.com publish an API? If so, please point the PA folk towards its documentation, i.e. give them a link to it.

oh- I am a PythonAnywhere dev :D

So you may be getting a connection refused because smtp2go.com is not on our whitelist.

will you add smtp2go to our whitelis?

Unfortunately Conrad missed out something in his earlier post -- free users only get access to non-whitelisted sites over HTTP and HTTPS, so SMTP won't work. We only support SMTP access to the GMail SMTP servers.

If SMTP2GO.com have an HTTP(S)-based API, then we can whitelist that -- just give us a link to the API documentation.