The mail()function is working but very inconsistently. It returns true all the time, but the message doesn't always arrive(it is the correct address). If the mail was always not being delivered, then maybe I could troubleshoot, but that it sometimes works and other times doesn't makes it very hard to detect the problem. Has anybody dealt with this before?
thanks, Dan
Hi,
I think you have a problem with your SMTP-server. If you have your own server, check the logs. I often find that a lot of debugging information is found in the logfiles, eg /var/log/messages.
Johan
It could be that the mail() function is OK... and the call to /usr/sbin/sendmail return OK!.... and your message still does not arrive....
Check out your mail server configuration (MTA. configuration.)
There must be something wrong.