Why mail() PHP function does not work with WAMP default installation?
问题 I have a default installation of WAMP Server 2.0. I'm trying to send email using this simple script: <?php if (mail('my_email@gmail.com', 'My Title', 'Some Text')) { echo "OK"; } else { echo "Why ??"; } ?> Unfortunately, I get the following warning: 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 C:\My_Path\send_email.php on line 3 Why ?? What could be the reason for that ? I