Tuesday, February 9, 2010

Sample php mail script

$to = "amazondrygoods-@webtv.net";
$subject = "Testmail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>

No comments:

Post a Comment