简体   繁体   English

使用php向gmail发送电子邮件时如何隐藏服务器名称?

[英]How to hide server name when send email using php to gmail?

How to hide server name when send email using php to gmail? 使用php向gmail发送电子邮件时如何隐藏服务器名称?

I test my code on hotmail it's not show server name , But when i test send mail to gmail why gmail show server name. 我在hotmail上测试了我的代码,它没有显示服务器名称,但是当我测试向gmail发送邮件时,为什么gmail显示了服务器名称。 How to remove it's 如何删除它

http://image.ohozaa.com/i/b2b/Jqx7Zg.png http://image.ohozaa.com/i/b2b/Jqx7Zg.png

$headers = 'From: NUMBERONE<admin@numberone.com>' . "\n"; 
$headers .= 'MIME-Version: 1.0' . "\n"; 
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 

How can i do? 我能怎么做?

I think you will find that the hostname is still there in hotmail (view email header/source). 我想您会发现hotmail中仍然存在主机名(查看电子邮件标题/源)。 Gmail just chooses to make it visible for anti-spam/fraud reasons. Gmail只是出于反垃圾邮件/欺诈的原因而选择使其可见。

If you have reverse DNS setup for a static IP dedicated to your webserver you could resolve this. 如果您为专用于Web服务器的静态IP设置了反向DNS,则可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM