У меня работало с такими настройками (сейчас шлю через свой почтарь):
EMAIL_HOST_YA = 'smtp.yandex.ru'
EMAIL_PORT_YA = 587
EMAIL_HOST_USER_YA = 'new.mail@yandex.ru'
EMAIL_HOST_PASSWORD_YA = '1234'
И код отправки:
from django.core.mail import get_connection, send_mail
#connections to yandex
connection = get_connection(
host=settings.EMAIL_HOST_YA,
port=settings.EMAIL_PORT_YA,
username=settings.EMAIL_HOST_USER_YA,
password=settings.EMAIL_HOST_PASSWORD_YA,
use_tls=True
)
send_mail(
subject,
text_content,
from_email,
to,
connection=connection,
html_message=html_content
)