I have problem with php mail()
function on localhost server.
When we run this on localhost it shows the error :
"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() in C:\wamp\www\sanyam\l1.php on line 30"
and then shows the message "Email sent"
when the email was not sent because a warning has occurred
why does it show the message that the email was sent?