doufei7464 2014-09-24 09:13 采纳率: 0%
浏览 34

警告消息“此消息可能尚未发送:sender@gmail.com了解更多报告网络钓鱼”在php [复制]

This question already has an answer here:

I am trying for send mail using php.But got these warning message in mail. 'This message may not have been sent by: zamisoft@gmail.com Learn more Report phishing.

My header is

$header_mail="select content from mail_header where id='1'";
$header_mail2=mysql_query($header_mail);
$fet=mysql_fetch_array($header_mail2);

$content= $fet['content'];

$Headers = "From:$content
" . 
"Reply-To:$content
" . 
"Content-type: text/html; charset=UTF-8 
"; 
$Headers.= "MIME-version: 1.0
";
 $Headers .= 'X-Mailer: PHP/' . phpversion()."
";

Content in $content variable is zamisoft<zamisoft@gmail.com>

Any body help me for solve these issue?

</div>
  • 写回答

1条回答 默认 最新

  • drpsrvu85668 2014-09-24 09:17
    关注

    I'd already answered the same on your previous post but it is more relevant here.

    The problem is simple that the PHP mail() function is not using a well configured SMTP Server.

    Nowadays Email-Clients and Servers perform massive checks on the emails sending server, like Reverse-DNS-Lookups, Graylisting and whatevs. All this tests will fail with the php mail() function. If you are using a dynamic ip, its even worse.

    Use the PHPMailer-Class and configure it to use smtp-auth along with a well configured, dedicated SMTP Server (either a local one, or a remote one) and your problems are gone.

    https://github.com/PHPMailer/PHPMailer

    评论

报告相同问题?

悬赏问题

  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制