// include header include("inc_header.php"); // initialize parameter variables $p_company = init_param("p_company", ""); $p_contact = init_param("p_contact", ""); $p_email = init_param("p_email", ""); $p_message = init_param("p_message", ""); $p_op = init_param("p_op", ""); $p_phone_1 = init_param("p_phone_1", ""); // check to see if we need to modify the content if($p_op == "contact") { // initialize email subject $mail_sub = ("C'est Papier Contact Information"); // initialize email message $mail_msg = ("\n"); $mail_msg .= ("
\n"); $mail_msg .= ("The following contact request was made on ".date("m.d.Y", time())." at ".date("h:i:s A", time()).".");
$mail_msg .= ("
Contact Name : ".$p_contact."\n");
$mail_msg .= ("
Company Name : ".$p_company."\n");
$mail_msg .= ("
Email Address : ".$p_email."\n");
$mail_msg .= ("
Phone Number : ".$p_phone_1."\n");
$mail_msg .= ("
What can I do for you? : ".$p_message."\n");
$mail_msg .= ("\n");
$mail_msg .= ("\n");
// initialize recipients
$p_to_email[0] = ($g_email_contact);
$p_to_name[0] = ($g_email_contact_name);
//$p_to_email[0] = ($g_email_dev);
//$p_to_name[0] = ($g_email_dev_name);
// send email
phpmail($p_to_email, $p_to_name, $p_email, $p_contact, $mail_sub, $mail_msg);
// set the response
$l_response = ("thanks");
}
?>