PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
</head>
<body>
<?php
print "Thank you, <b>$_POSTїname]</b>, for your message!<br><br>\n\n";
print "Your e-mail address is: <b>$_POSTїemail]</b><br><br>\n\n";
print "Your message was:<br><br>\n\n";
print "$_POSTїmessage] <br><br>";
//start building the mail string
$msg = "Name: $_POSTїname]\n";
$msg .= "E-Mail: $_POSTїemail]\n";
$msg .= "Message: $_POSTїmessage]\n";
//set up the mail
$recipient = "yuping-wang@tamu.edu";
$subject = "Form Submission Results";
$mailheaders = "From: My Web Site <defaultaddress@yourdomain.com> \n";
$mailheaders .= "Reply-To: $_POSTїemail]\n\n";
//send the mail
mail($recipient, $subject, $msg, $mailheaders) or print " could not send mail";
?>
</body>
</html>
when I run the program, why it always shows that "could not send mail"
Thanks