I have the same problem. Here is my code.
<?
$sender_name = $REQUEST["sender_name"];
$sender_email = $REQUEST["sender_email"];
$message = $_REQUEST["message"];
$msg = "E-MAIL SENT FROM WWW SITE\n";
$msg .= "Sender's Name:\t$sender_name\n";
$msg .= "Sender's E-mail:\t$sender_email\n";
$msg .= "Message:\t$message\n\n";
$to = "zul_1381@yahoo.com.sg";
$subject = "Web Site Feedback";
$mailheaders = "From: My Web Site <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to,$subject,$msg,$mailheaders);
?>
<html>
<head>
<title>Simple Feedback Form Sent</title>
</head>
<body>
<h1>The following e-mail has been sent:</h1>
<p><strong>Your Name:</strong><br>
<? echo "$sender_name"; ?></p>
<p><strong>Your E-mail Address:</strong><br>
<? echo "$sender_email"; ?></p>
<p><strong>Message:</strong><br>
<? echo "$message"; ?></p>
</body>
</html>
I'm trying to send to my yahoo email from localhost. Is there anything to do with my php.ini file? The SMTP in my php.ini is localhost, smtp_port=25, sendmail_from is zul_1381@yahoo.com.sg.
Thank you for reading. Any help I can get is greatly appreciated.