Answer the question
In order to leave comments, you need to log in
Why doesn't sending mail via send_mail() work?
Good afternoon.
I'm trying to use a Yandex mailbox to send mail to the site admin about orders made.
Versions:
Python==2.7
Django==1.8 I
use native function send_mail()
and standard backend for this.
In settings:
EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_PORT = 465
EMAIL_HOST_USER = 'username'
EMAIL_HOST_PASSWORD = 'userpassword'
EMAIL_USE_SSL = True
EMAIL_HOST_USER = '[email protected]'
@yandex.ru
you do not need to specify it. error: [Errno 101] Network is unreachable
Answer the question
In order to leave comments, you need to log in
The error "Network is unreachable" means that traffic from your server to smtp.yandex.ru does not go. The reasons may be in the firewall of your server, in blocking your server by Yandex networks, in the absence of routing between them, etc. etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question