bradgrafelman;10942753 wrote:I'm not familiar enough with OSX to say, but if mail() returns true then it must have connected to some sort of MTA on your computer on port 25. Otherwise, if you tried it locally and didn't have any sort of SMTP daemon running, you'd get something like:
and mail() will return false.
You can test dagon's suggestion by opening the Terminal application and typing "telnet localhost 25" (without the quotes) and see if any sort of SMTP service responds.
Thanks for the guidance. I did as you suggested and got the following:
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
However, while I was in Terminal I saw a bunch of messages in the Terminal messaging system. They were all like so:
This is the Postfix program at host My-Computer.local.
I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<me@mydomain.com>: host any-smtp.myhost.com
said: 530 authentication required (in reply to MAIL FROM
command)
So it does appear that I have Postfix installed (must be pre-installed), and that it is failing to deliver because the smtp server requires authentication. I guess my question, though, is still -- can my php recognize this and return a "fail" instead of a "success?"
thanks again
MC66