require("header.inc.php"); ?>
if(isset($_POST['sendcontact'])){
if(!empty($_POST['fname']) && !empty($_POST['lname']) && !empty($_POST['company']) && !empty($_POST['country']) && !empty($_POST['phone'])
&& !empty($_POST['email']) && !empty($_POST['comments'])){
$to_email = "v.deleonibus@inventya.com";
$from_email = $_POST['email'];
$entetedate = date("D, j M Y H:i:s -0600"); // Offset horaire
$entetemail = "From: $from_email \n"; // Adresse expéditeur
$entetemail .= "Cc: \n";
$entetemail .= "Bcc: \n"; // Copies cachées
$entetemail .= "Reply-To: $from_email \n"; // Adresse de retour
$entetemail .= "X-Mailer: PHP/" . phpversion() . "\n" ;
$entetemail .= "Date: $entetedate";
$text2send = "Here are the Comments or Questions from Customer :
First Name : ".$_POST['fname']."
Last Name : ".$_POST['lname']."
Company : ".$_POST['company']."
Country : ".$_POST['country']."
Phone : ".$_POST['phone']."
Email : ".$_POST['email']."
Comments or Questions : ".$_POST['comments']."
--------------------------------------------------
i2m Online : http://www.i2monline.com/
Email : v.deleonibus@inventya.com
--------------------------------------------------";
//print($text2send);
if(mail($to_email,"i2m Online - ContactUs","$text2send",$entetemail)){
$alert = "Comments have been sent.";
$fname = FALSE;
$lname = FALSE;
$company = FALSE;
$country = FALSE;
$phone = FALSE;
$email = FALSE;
$comments = FALSE;
}else{
$alert = "SENDING ERROR!";
}
}else{
$alert = "Please Complete the Form";
} // if filled form
}
?>
include("livesearch.inc.php");?>
|
include("righttab-main.inc.php");?> |
require("footer.inc.php"); ?>