我对 PHP 没有很好的了解,我刚刚开始研究它......现在我正在尝试使用 mail() 函数作为 w3schools.com 中给出的示例
<?php
$to = "ramkumarpece05@gmail.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "ramp211087@gmail.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
为此我收到如下错误消息
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 F:\contact.ph
p on line 7
Mail Sent.
php.ini 文件所在的位置,或者我必须从互联网上下载它.....
请帮我解决这个问题...