Django中发送到emai的超链接文本

2024-10-02 22:27:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我想使“点击这里”成为一个超链接,点击时,将发送到127.0.0.1的人举例来说。你知道吗

 confirm_links = 'To confirm this order <a href= "127.0.0.1://confirmorder/" > click here </a> '

我想这将正常工作,但我有代码是通过电子邮件发送。你知道吗


Tags: to代码hereorderlinksthisconfirmclick
1条回答
网友
1楼 · 发布于 2024-10-02 22:27:17
from django.core.mail import send_mail

send_mail('Subject here', 'Here is the message.', 'from@example.com',
    ['to@example.com'], fail_silently=False)

或者

你想要这样的东西吗?你知道吗

<a href="mailto:someone@example.com?Subject=Hello%20again" target="_top">

相关问题 更多 >