php Error: mail() Failed to connect to mailserver at “localhost” port 25

When there is a:

warning: mail() [
function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in E:\TOOL\Apache\htdocs\rzchina_beta\club\includes\mail.inc on line 193.

Unable to send e-mail. Please contact the site administrator if the problem persists.

or appear:

mail(): SMTP server response: 550 5.7.1 incapable to relay for error.

solution:

install IIS built-in SMTP, right click on the SMTP virtual server, and set the following Settings in the popup properties window:

click the access TAB, then click relay, click add out of the popup window, then select the single computer, add IP address to 127.0.0.1. And then make sure you go all the way back. SMTP Server Response: 550 5.7.1 incapable to relay for… The error)

test it out:

< ?php

mail(“[email protected]”,” test “,” test if received “);

?>

Read More: