$result=array();
$success=0;
$pgname="contact.php";
$result=$_REQUEST;
if(count($result)>1)
{
/////////////////////// SETTINGS /////////////////////////
$emailto="info@aaaenergyratings.com";
$emailfrom="Customer Support";
$emailsubject="Customer Enquiry";
$mail_body_title="########### Customer Query ###########";
$fields=array('firstname','lastname','address','city','state','phone','email','requirements');
$success_msg="Enquiry has been sucessfully been sent.";
$failure_msg="Sorry! Unable to send the enquiry now.";
/////////////////////// SETTINGS /////////////////////////
/////////////////////// CUSTOMER DATA //////////////////////
$val=array();
$l=0;
$msg="";
foreach($result as $key=>$value)
{
$val[$l]=$value;
$l++;
}
/////////////////////// CUSTOMER DATA //////////////////////
//////////////////////// EMAIL BODY ///////////////////////
$body = "
".$mail_body_title." ";
$i=0;
foreach($fields as $in=>$title)
{
$body.="".$title." : ".$val[$i]." ";
$i++;
}
$body.="
";
//////////////////////// EMAIL BODY ///////////////////////
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $emailfrom\r\n";
if(mail($emailto, $emailsubject, $body, $headers))
{
$success=1;
$msg=$success_msg;
}
else
{
$success=2;
$msg=$failure_msg;
}
}
?>
Food Safety Services
Address
Tullygay,
Letterkenny, Co. Donegal
Email
celineokennedy@eircom.net
Phone
00353 74-9127276
Fax
00353 74-9127900
if($success==1 || $success==2)
echo $msg;
?>
Celine O' Kennedy
MSC CBiol MIBiol
MIFST MRIPH.s
Celine has considerable experience in quality management and operations management having worked in quality assurance positions within the healthcare industry and senior management positions within the food and pest control industries.
Click here