Reply to first response. Extract from my php code is:-
<?
if(!empty($_POST['myname']) && !empty($_POST['palname']) && !empty($_POST['palemail']) && preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $_POST['palemail'])){
$subject="From: ".$_POST['myname']."\n";
$message="Content goes in here\n";
mail($_POST['palemail'],$subject,$message);}
else {
// now I want to post a message depending on which POST was empty or non-conforming
// The page has a logo and some permanent text (HTML) and I want
// error messages to appear below the HTML content.
}
?>