0
我想发送简单的HTML邮件使用PHP邮件()。PHP邮件()问题,如果它包含URL
下面的代码工作精细
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
If(mail('[email protected]', 'test mail', 'test<hr>this is a test mail', $headers)){
Echo 'OK';
} else{
Echo 'Not ok';
}
问题:只要我把
在身体某些
特定网址的代码仍然说其正常,但邮件没有收到
If(mail('[email protected]', 'test mail', 'test<hr>this is a test mail from www.xyz.com', $headers)){
Echo 'OK';
} else{
Echo 'Not ok';
}
有人可以指导我最新的问题,以及如何解决它?
将您的消息发送到本网站,以查看服务器是否将其作为垃圾邮件使用http://www.mail-tester.com – MaveRick
首先将所有''''改为正常'''不理想的结果,是'解析错误:...'和'解析错误:语法错误,意外'@'' –
您是否正确设置了邮件配置? –