django Gmail删除电子邮件中的超链接,为什么?

jw5wzhpr  于 2023-04-07  发布在  Go
关注(0)|答案(1)|浏览(132)

我的应用程序预计将发送电子邮件验证链接给用户。
当我在Gmail中打开这样的电子邮件时,链接不会显示,Gmail会删除它们。
如果我选择[Show original]选项,我可以看到链接在那里。

  • 为什么会这样呢?
  • 我该怎么解决这个问题?
    **注意:**我在开发服务器上。
    显示邮箱:
Hi from Team!

You just subscribed to our newsletter. Please click the link below in order to confirm:

Thank You!
Team

原始邮箱:

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

Hi from Team!

You just subscribed to our newsletter. Please click the link below in order to confirm:
http://127.0.0.1:8000/newsletter/verify_email/MTQ/bmq8o8-15cab7bf32186aab16c2c086e9beaec3/

Thank You!
Team

谢谢!

pcww981p

pcww981p1#

我认为你应该重新格式化html文件并将链接嵌入到a标签中

<a href="https://www.from.com">from</a>

相关问题