我的应用程序预计将发送电子邮件验证链接给用户。
当我在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
谢谢!
1条答案
按热度按时间pcww981p1#
我认为你应该重新格式化html文件并将链接嵌入到
a
标签中