// contact.php
$name = "$_POST[name]";
$email = "$_POST[email]";
$phone = "$_POST[phone]";
$category = "$_POST[category]";
$message = "$_POST[message]";
//=======================================================
//prepare to email message to MBCU
$mailsubject = "Morecambe Bay Credit Union Enquiry from ".$name;
$Fromaddress = $email;
$toemail = "enquiries@mbcu.co.uk";
//start message here
$msg = "The following inquiry was received from ".$name." Email:".$email." Phone:".$phone." Category:".$category."\n\n
";
$msg = $msg.''.$message."\n\n
";
//echo $msg;
//wordwrap to prevent gaps and !!s
//$msg = wordwrap($msg, 72);
//LIVE MAILING VERSION
if (mail($toemail, $mailsubject, stripslashes($msg), "From: ".$Fromaddress."\nContent-Type: text/html; charset=iso-8859-1"))
{
//Show thankyou
print ("