if (isset($_POST['submit']))
{
$headers = "FROM:editor@example.com\n";
$body = $_POST['name'].",id=".$_POST['id'];
mail($_POST['recipient'],"News",$body,$headers);
echo "The article has been mailed to ".$_POST['recipient'];
}
?>