Originally posted by mtbim
I can mail to abc@xxx.com when my php.ini settings like this
BUT I CAN'T MAIL yahoo.com, hotmail.com....(other domains)
mtbim@yahoo.com
Is xxx.com set up to allow relaying from the IP of your server?
Most mail servers do not work as open relay, because if they did they would get used by spammers. Most mail servers are configured to only accept mail for their domain (eg. mail.xxx.com would only accept mail addressed to @xxx.com). In the case of an ISP, the mail server would be configured to also relay mail to any email address from users whos IP address is in the dial-up address pool.
Are you sure the mail server is configured to relay mail from the IP of the web server?