<?
$ToEmail = 'myemail@myemail.com';
$ToSubject = "subject line here";
$EmailBody = "";
if ($Name) {
$EmailBody.="COMPANY NAME: $Name\n";
}
if ($Address) {
$EmailBody.="ADDRESS: $Address\n";
}
if ($ContactPerson) {
$EmailBody.="CONTACT PERSON: $ContactPerson\n";
}
$EmailBody.="\n\n";
if ($bagel || $fruit || $toast) {
$EmailBody.="MENU ORDERS\n";
}
if ($bagel) {
$EmailBody.="BAGEL: $bagel \n";
}
if ($toast) {
$EmailBody.="TOAST: $toast \n";
}
if ($fruit) {
$EmailBody.="FRUIT: $fruit
";
}
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$Name."
<".$Email.">");
?>
Well, that's what he's asking for. Of course, johnny_cat, the reason you've not gotten a "straight answer" is probably twofold: one, we don't tend to like to do the work for others, we prefer to simply point out mistakes or offer suggestions, advice, examples, and the like (in order that you might grow as a programmer); two, I've done exactly what you've asked for, but it isn't really a Good Thing(TM) and so nobody could quite understand what you desired.
In this case the script will make it possible for you to get a completely blank e-mail, which I'm pretty sure is not what you want .... :eek: