邮件被发送到gmail,yahoo,而不是个人邮件服务器 [英] Mail being sent to gmail, yahoo, but not to personal mail servers
问题描述
我没有直接访问服务器,只有ftp到public_html文件夹,因此我无法检查日志.....
任何想法或建议?
编辑:
$ MAILFROM = website@mysite.com;
$ mailto = $ buyerrow ['email'];
$ subject =测试详细信息;
$ body ='嗨'$ buyerrow ['name']。'!< br>下面的测试详细信息:< br>< br>< br>< br>< br> ; br> Web团队;
$ headers =MIME-Version:1.0\r\\\
;
$ headers。=Content-type:text / html; carset = iso-8859-1; \r\\\
;
$ headers。=From:ADMIN<。$ mailfrom。> \r\\\
;
@mail($ mailto,$ subject,$ body,$ headers, - f website@mysite.com);
对于我公司的服务器上的垃圾邮件文件夹,我确信没有结束或者....
是否有可能有一些服务器设置允许php将邮件发送到特定的服务器?
许多公司的邮件服务器设置为在SMTP会话期间立即拒绝某些类型的垃圾邮件。如果发生这种情况,它永远不会让你的公司垃圾邮件文件夹。您应该向公司系统管理员查询。
如果您有疑问,可以随时使用 Wireshark 来捕获和分析实际的SMTP流量。
I am facing a weird problem. When I send out mails using PHP's mail() function, the mail is being sent perfectly to gmail and yahoo(though it was marked as spam in yahoo), but the mail is not received by my company's email address.
I don't have direct access to the server, only ftp to the public_html folder, hence I can't check the logs.....
Any ideas or suggestions?
EDIT:
$mailfrom="website@mysite.com";
$mailto=$buyerrow['email'];
$subject="Test Details";
$body='Hi '.$buyerrow['name'].'!<br>Test Details below:<br><br><br><br><br>Thanks<br>Web Team';
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; carset=iso-8859-1;\r\n";
$headers.= "From: ADMIN <".$mailfrom.">\r\n";
@mail($mailto,$subject,$body,$headers,"-f website@mysite.com");
As for the spam folders at my company's server, I am quite sure it didn't end up there either....
Is it possible that there is some server setting which allows php to send mail to only particular server?
Many company mailservers are set up to outright reject some types of spam immediately during the SMTP session. If that happens, it will never make it to your companies spam folder. You should check with your company system administrator.
If you're in doubt, you can always use an application like Wireshark to capture and analyse the actual SMTP traffic.
这篇关于邮件被发送到gmail,yahoo,而不是个人邮件服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!