用户应收到以下格式的电子邮件:-----复制令牌:xxxxx并将其粘贴到此链接中-----我的代码:
$message="Copy the token: ".
token_generator(10)." ".
"And paste it in the link "."<a href='recover_pass_get_mail.php'>Link</a>";
其中xxxxx由token_generator(10)函数返回。但是用户输入格式代码
似乎您的电子邮件功能对html标签没有很好的反应,您可能在$header
对象中缺少此功能。
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
阅读此内容,https://css-tricks.com/sending-nice-html-email-with-php/
它有很好的解释
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句