Forums

SendGrid sending mail on Pythonanywhere

Hello,

I did all in that link step by step. http://help.pythonanywhere.com/pages/environment-variables-for-web-apps/

But i didn't send mail. It throws [Errno 111] Connection refused error.

I think , This error is about my pythonanywhere account ? Must it be paid account ?

If you get a connection refused error, that means that you're not going through the proxy. See http://help.pythonanywhere.com/pages/403ForbiddenError/

I have the same issue here. Would you please add 'smtp.sendgrid.net' into the whitelist?

https://sendgrid.com/docs/for-developers/sending-email/django/

Hi there, our free users whitelist is only accessible over http/https, so smtp wouldn't work there. (but you could use the sendgrid http api to send emails- we do have api.sendgrid.com on our whitelist)