 <?php
 $to = "info@wolfvillecu.com";
 $subject = ".:: Contact Us Form Online Banking";
 $fields = array(); 
 $fields{"name"} = "Full Name"; 
 $fields{"address"} = "Email Address";  
 $fields{"phone"} = "Phone Number";
 $fields{"Country"} = "Country";
 $fields{"message"} = "Message"; 

 $body = "We have received the following information:\n\n"; foreach($fields as $a => $b){ 	$body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }
 
// $body = "Hi,\n\nHow are you?";
 if (mail($to, $subject, $body)) {
   header("Location: customercare.php?done=1");
  } else {
   header("Location: customercare.php?done=2");
  }
 ?>