shi*_*bly 0 html python email django
我试过这个:
from django.core.mail import send_mail
send_mail('hello subject', '<a href="http://127.0.0.1:8000/confirm/' + tempToken + '">Confirm</a>'
, 'from', ['to'], fail_silently=False)
Run Code Online (Sandbox Code Playgroud)
但是在登录电子邮件时,我得到了一个类似的字符串:
<a href="http://127.0.0.1:8000/confirm/xxx">Confirm</a>
Run Code Online (Sandbox Code Playgroud)
但我想要一个html锚链接:确认
如何使用html锚链接发送消息?
如果有人帮我修理它,将非常感激.
| 归档时间: |
|
| 查看次数: |
1373 次 |
| 最近记录: |