Select Page

Failed to connect to mailserver at


Failed to connect to mailserver at – 5 causes & fixes for this PHP error

Here at Bobcares.com, we provide Outsourced Tech Support to web hosting providers. As part of our service, we resolve website errors posted by hosting users.

A common error we’ve seen in PHP applications is:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini

(more…)