"Error sending mail: Failed to connect to
mailserver
at "localhost" port 25, verify your "SMTP" and
"smtp_port" setting in php.ini or use ini_set()"
I think your error is rather clear? You haven't got an SMTP server
running on your local machine...
If you don't want to have one there, then change php.ini... ("locate
php.ini")
Good luck
Ed W