Уведомления

Группа в Telegram: @pythonsu

#1 Июль 25, 2013 00:00:57

and_07
Зарегистрирован: 2013-06-08
Сообщения: 51
Репутация: +  0  -
Профиль   Отправить e-mail  

SMTPAuthenticationError

Всем доброго времени суток
возникла ошибка
SMTPAuthenticationError: (535, ‘5.7.0 Error: authentication failed: authentication failure’)

from django.core.mail import send_mail,mail_admins,get_connection
from django.core.mail.message import EmailMessage
*******
            subject, from_email, to = 'hello', 'from@example.com', 'totest@tes.te'
            text_content = 'This is an important message.'
            html_content = '<p>This is an <strong>important</strong> message.</p>'
            msg = EmailMessage(subject, html_content, from_email, [to])
            msg.content_subtype = "html"
            msg.send()
****
ошибка в msg.send()
при этом функции send_mail,mail_admins работают и письма приходят

Отредактировано and_07 (Июль 25, 2013 00:02:09)

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version