I have the similar problem in my site.
I have error message when i trying to call mail(....) function in my php script. The error look like this:
Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()...