Contact R Brampton
Please contact us for more information on:
Tel: 0121 460 1518
Mobile: 07974 501673
Email: info@rbramptonltd.co.uk
or
robert@robertbrampton.orangehome.co.uk
Or write to us at:
5 Ash Bridge Court
Rednal
Birmingham
West Midlands
B45 8EP
############################################################################
# THIS CHUNK OF CODE IS THE CONTACT FORM OPTION
#
$dontSend="false";
#ini_set("sendmail_from", $email_from);
$email_from="website@".$row_otherDetailsRS['websiteDomain'];
if (isset($_POST['nameOrg'])){$theNameOrg=cleanQuery($_POST['nameOrg']);}else{$theNameOrg="";}
if (isset($_POST['telNo'])){$theTelNo=cleanQuery($_POST['telNo']);}else{$theTelNo="";}
if (isset($_POST['email'])){$theEmail=cleanQuery($_POST['email']);}else{$theEmail="";}
if (isset($_POST['collectionTown'])){$theCollectionTown=cleanQuery($_POST['collectionTown']);}else{$theCollectionTown="";}
if (isset($_POST['collectionPostcode'])){$theCollectionPostcode=cleanQuery($_POST['collectionPostcode']);}else{$theCollectionPostcode="";}
if (isset($_POST['deliveryTown'])){$theDeliveryTown=cleanQuery($_POST['deliveryTown']);}else{$theDeliveryTown="";}
if (isset($_POST['deliveryPostcode'])){$theDeliveryPostcode=cleanQuery($_POST['deliveryPostcode']);}else{$theDeliveryPostcode="";}
if (isset($_POST['typeOfBike'])){$theTypeOfBike=cleanQuery($_POST['typeOfBike']);}else{$theTypeOfBike="";}
if (isset($_POST['message'])){$theMessage=cleanQuery($_POST['message']);}else{$theMessage="";}
if($theNameOrg==""){$dontSend="true";}
if(strlen($theMessage)<=3){$dontSend="true";}
if (($theTelNo=="")&&($theEmail=="")){$dontSend="true";}
if ($dontSend!="true"){
$mailBody.="NAME: ".$theNameOrg."\n\nEMAIL: ".$theEmail."\n\nTELEPHONE: ".$theTelNo."\n\n";
#$mailBody.="Pick Up From: ".$theCollectionTown." (".$theCollectionPostcode.")\n\n";
#$mailBody.="Deliver To: ".$theDeliveryTown." (".$theDeliveryPostcode.")\n\n";
#$mailBody.="Type Of Bike: ".$theTypeOfBike."\n\n";
$mailBody.="MESSAGE:\n-------------------------------------\n".$theMessage."\n-------------------------------------";
$to=$row_otherDetailsRS['emailAddress'];
#$to="jim@grabbusiness.co.uk";
$from=$email_from;
$subject="Contact from ".$theNameOrg." via ".$row_otherDetailsRS['websiteDomain'];
#$headers = 'To: ' . $to . "\r\n";#notneeded
$headers .= 'Reply-To: '.$theEmail."\r\n";
$headers .= 'Return-Path: '.$theEmail."\r\n";#not needed
$headers .= 'From: '.$from."\r\n";
#$headers .= 'Cc: ' . '' . "\r\n";
#$headers .= 'Bcc: ' . '' . "\r\n";
mail($to, $subject, $mailBody, $headers);
#mail($to, $subject, $mailBody, $headers, '-f '.$email_from);
#echo $to."
".$subject."
".$mailBody."
".$headers;
#exit;
}
#
#
##############################################################################################
#
# THIS CHUNK OF CODE DISPLAYS THE CONTACT FORM OR, IF SENT, SHOWS A MESSAGE TO SAY THAT IT HAS
#
if ($dontSend=="true"){?>
;}else{// end if form has been submitted?>
Thank you for your enquiry, We will be in touch with you as soon as possible.
To send another message please click here.
;}//if message has been sent
#
# THIS CHUNK OF CODE DISPLAYED THE CONTACT FORM OR GAVE A MESSAGE TO SAY THAT THE MESSAGE HAD ALREADY BEEN SENT
################################################################################################################
?>