What's wrong with this...? I don't get an email back... Also, does the from address have to be a real address? If I run this on a computer that doesn't have Outlook Express, will it not work? How can I make it work on computers like that?
<html>
<head>
<title>Test php</title>
</head>
<?php
$to = "[email protected]";
$subject = "testing php emailing";
$from = "[email protected]";
$headers = "From: $from";
$message = "Your username is " . $_POST['username'];
if (mail($to,$subject,$message,$headers))
echo "Mail Sent.";
else
echo "Problem with mail.";
?>
<body>
</body>
</html>