"; } if (strlen($from) == 0) { $msg .= "Enter your email!
"; } elseif (strlen($from) > 0) { $int = (ereg("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $from)); if ($int == 0) { $msg .= "Invalid Email! Please include a @ and use a .com, .org or .Country(ie .au, .tr) type address
"; } } if (strlen($subject) == 0) { $msg .= "Enter a subject!
"; } if (strlen($comments) == 0) { $msg .= "Enter some comments!
"; } if (strlen($msg) == 0) //Set the MailTo variable { //$Mailto = "dave@webbdawg.com"; $Mailto = "info@markbryantsailing.com"; $from = $name . " <" . $from . ">"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "From: ".$from."\r\n"; $Mailsent = mail($Mailto, $subject, $comments , $headers); //$Mailsent = send_mail($Mailto, $Subject, $Comments, $From); if ($Mailsent > 0) { $msg = "Your Email has been sent."; $name = NULL; $from = NULL; $subject = NULL; $comments = NULL; } else { $msg = "An error occured during submission. Please wait and try again."; } } } ?> Contact Mark Bryant Sailing
Contact Mark Bryant Sailing
$msg

"; ?>
Your Name:
Your email address:
Subject:
Comments:
If you want to start a
new paragraph make
sure to hit enter twice
Click to close the form