Python django core.mail.send_mail工作正常,但EmailMessage.send失败

Python django core.mail.send_mail工作正常,但EmailMessage.send失败,python,django,email,Python,Django,Email,正在尝试发送带有“回复”选项的电子邮件,如下所示 msg = EmailMessage( subject='title/subject', body='<h1>h1 text</h1><h2>h2 text</h2>', from_email='FROM-ADDR', to=['TO-ADDRESS',], reply_t

正在尝试发送带有“回复”选项的电子邮件,如下所示

    msg = EmailMessage(
            subject='title/subject',
            body='<h1>h1 text</h1><h2>h2 text</h2>',
            from_email='FROM-ADDR',
            to=['TO-ADDRESS',],
            reply_to=['RE-TO-ADDR',],
        )
    msg.content_subtype='html'
    msg.send()
to = ['TO-ADDRESS',]
from_email = 'FROM-ADDR'
subject= 'subject'
text = 'SOME TEXT'
html_message = '<h1>abc</h1>'
mail.send_mail(subject, text, from_email, to, html_message=html_message)
msg=EmailMessage(
subject='title/subject',
body='h1 texth2 text',
从_email='from-ADDR',
to=['收件人',],
回复地址=['RE-to-ADDR',],
)
msg.content\u subtype='html'
msg.send()
它在/send_mail
处给出SMTPDataError(550,b‘请求失败;邮箱不可用’)

但是,如果我只使用django.core.mail.send_-mail,它的工作原理如下

    msg = EmailMessage(
            subject='title/subject',
            body='<h1>h1 text</h1><h2>h2 text</h2>',
            from_email='FROM-ADDR',
            to=['TO-ADDRESS',],
            reply_to=['RE-TO-ADDR',],
        )
    msg.content_subtype='html'
    msg.send()
to = ['TO-ADDRESS',]
from_email = 'FROM-ADDR'
subject= 'subject'
text = 'SOME TEXT'
html_message = '<h1>abc</h1>'
mail.send_mail(subject, text, from_email, to, html_message=html_message)
to=['to-ADDRESS',]
from_email='from-ADDR'
主题='subject'
text='一些文本'
html_消息='abc'
mail.send_mail(主题、文本、from_email、to、html_message=html_message)

忘记声明版本为django 2.2.6您是否尝试使用有效的电子邮件地址?