-3
コード:なぜ私のメールは送信されませんが、私はsmtpを設定しますか?
<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
エラー:あなたのインターネットプロバイダの
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:\xampp\htdocs\mail.php on line 7 Mail Sent.
既に回答済みです(http://stackoverflow.com/questions/2559898/xampp-mail-not-working-with-php-mail-function)。 – Shef