var_dump returns 'bool(false)'. And the email is still getting sent through. I know that the result of the mail function does not necessarily relate to whether the email was actually sent, however, in the past this did work on our server- it did return true; the SMTP server was seemingly communicating correctly with PHP.
Apparently, the SMTP configurations have not been modified since last year. The only thing that has changed this calendar year is the version of PHP4 we are using: we went from 4.3.7(? not 100% sure it was .7, but certainly 4.3.x) to 4.4.2 a few months ago. This in and of itself shouldn't have caused a change in the return value of the mail() function, unless something weird happened somewhere in some settings that could cause such a change, or if something just got corrupted. I just have no idea where to look or what settings to check. Any suggestions?
Also, can someone maybe explain how it is possible that the mail function can return false yet the email will still get sent? As the PHP manual puts it, the mail function "returns TRUE if the mail was successfully accepted for delivery," or as devinemke puts it, "mail will return true only if the mail was successfully sent to your SMTP app." I understand the opposite case: the email can be accepted by the SMTP server but then still not get sent. But how can the SMTP server send the email out if it was, supposedly, not even successfully accepted by the server? (Or is it actually accepting the email but somehow the wrong message is being communicated to PHP?)
Thanks.