[英]PHP mail function not working on new Exchange 2010 Server
When trying to send mail (to email addresses within the domain) using PHP's mail() function on my new Exchange 2010 server I get the error: 当尝试在新的Exchange 2010服务器上使用PHP的mail()函数将邮件发送到域中的电子邮件地址时,出现错误消息:
mail(): SMTP server response: 501 5.1.3 Invalid address
mail():SMTP服务器响应:501 5.1.3地址无效
I tried creating a new receive connector with anonymous authentication but that doesn't seem to help, and honestly I have little to no experience with Exchange Server. 我尝试使用匿名身份验证创建新的接收连接器,但这似乎无济于事,说实话,我对Exchange Server的了解很少甚至没有。
The address is valid, btw. 地址有效,顺便说一句。
Try adding this on top: 尝试将其添加到顶部:
ini_set("sendmail_from", "email@yourdomian.com");
It'll work 会的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.