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

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

问题描述

我的域中有一个简单的 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); 

我需要更改什么设置来解决这个问题?

What setting to I change to fix this?

推荐答案

我自己最近在重新设计网站时也遇到过这个问题.

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天全站免登陆