Forums

Error to use send_mail function

I'm having a problem to use the function

from django.core.mail import send_mail

Doesn't send the mail and return connection refuse with localhost.

Any solution?

Thanks

Hi there, if you're a free user you can't send email from localhost, but you can go via, eg, gmail's servers. More info here:

https://www.pythonanywhere.com/forums/topic/168/