phpmailer发HTML邮件超链接点击无效解决办法
程序员文章站
2022-05-22 09:14:38
...
phpmailer发HTML邮件超链接点击无效
用phpmailer发送HTML邮件,,
include_once("class.phpmailer.php");;
$formmail="[email protected]";
$subject = "实验";
$smtp="smtp.126.com";
$username="[email protected]";
$password="**********";
$mail=new PHPMailer();
$mail->SMTPAuth = true;
$mail->Host=$smtp;
$mail->IsSMTP();
$mail->SMTPAuth=true;
$mail->Username=$username;
$mail->Password=$password;
$mail->From="[email protected]";
$mail->FromName="Souba激活";
$mail->Sender="[email protected]";
$mail->Subject =$subject;
$mail->IsHTML(true);
$mail->Body ="google";
$mail->AddAddress($formmail);
if(!$mail->Send())
{
echo "发送失败";
}
else
{
echo "发送成功";
}
?>
可以发送成功的,,
不过进邮箱打开邮件,,点击超链接无效,,、
求高手帮忙解决一下,,,谢谢
------解决方案--------------------
地址前加上HTTP://
用phpmailer发送HTML邮件,,
include_once("class.phpmailer.php");;
$formmail="[email protected]";
$subject = "实验";
$smtp="smtp.126.com";
$username="[email protected]";
$password="**********";
$mail=new PHPMailer();
$mail->SMTPAuth = true;
$mail->Host=$smtp;
$mail->IsSMTP();
$mail->SMTPAuth=true;
$mail->Username=$username;
$mail->Password=$password;
$mail->From="[email protected]";
$mail->FromName="Souba激活";
$mail->Sender="[email protected]";
$mail->Subject =$subject;
$mail->IsHTML(true);
$mail->Body ="google";
$mail->AddAddress($formmail);
if(!$mail->Send())
{
echo "发送失败";
}
else
{
echo "发送成功";
}
?>
可以发送成功的,,
不过进邮箱打开邮件,,点击超链接无效,,、
求高手帮忙解决一下,,,谢谢
------解决方案--------------------
地址前加上HTTP://
相关文章
相关视频
上一篇: mysql查询更新时的锁表机制分析