无法发送电子邮件到我自己的域名的地址 [英] can't send email to addresses at my own domain

查看:155
本文介绍了无法发送电子邮件到我自己的域名的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网域上有一个简单的PHP脚本,向我发送电子邮件:

I have a simple php script on my domain that sends me an email:

...
$toMail = "me@gmail.com"; //this works - I get the email at my gmail
$toMail = "me@mydomain.com"; //this doesn't - I get nothing

mail($toMail, $subject, $message, $header); 

我修改了什么设置?

推荐答案

当我最近重新设计一个网站时,我自己遇到了这个问题。

I've had this problem myself, when I was redesigning a site recently.

方式我们的系统设置了,所以系统认为,因为电子邮件来自同一个域,它是一个垃圾邮件,因此阻止它。

There was an issue with the way our system was set up, so that the system thought that because the email was coming from the same domain it was a spam email and as such blocked it.

与您的系统管理员,您被允许发送电子邮件等。

Check with your system administrator that you are allowed to be sending the emails etc.

否则,您将不得不修改标头看起来像从外部地址。希望你得到它排序。

Either that, or you'll have to modify the headers to have look like it's being sent from an external address. Hope you get it sorted.

这篇关于无法发送电子邮件到我自己的域名的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆