开发者

PHP mail function not working on new Exchange 2010 Server

开发者 https://www.devze.com 2023-03-26 19:27 出处:网络
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:

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:

mail(): SMTP server response: 501 5.1.3 Invalid address

I tried creating a new receive connector with anonymous authentication but that doesn't seem to h开发者_Go百科elp, and honestly I have little to no experience with Exchange Server.

The address is valid, btw.


Try adding this on top:

ini_set("sendmail_from", "email@yourdomian.com");

It'll work

0

精彩评论

暂无评论...
验证码 换一张
取 消