gpt4 book ai didi

python - 如何在 Django 中添加 "Reply To"?

转载 作者:太空狗 更新时间:2023-10-29 22:01:18 25 4
gpt4 key购买 nike

msg = EmailMessage(subject, body, from_email, [to_email])
msg.content_subtype = "html"
msg.send()

如何添加“回复”标题?

最佳答案

您需要向 EmailMessage 添加一个 Reply-To header 。

headers = {'Reply-To': reply_email}
msg = EmailMessage(subject, body, from_email, [to_email], headers=headers)
msg.content_subtype = "html"
msg.send()

关于python - 如何在 Django 中添加 "Reply To"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5243757/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com