1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<?php
$ip_address = $REMOTE_ADDR;
print "&ip=$ip_address";
$message = $HTTP_POST_VARS['message'];
$name = $HTTP_POST_VARS['name'];
$email = $HTTP_POST_VARS['email'];
$my_email = $HTTP_POST_VARS['my_email'];
$phone = $HTTP_POST_VARS['phone'];
$my_subject = $HTTP_POST_VARS['my_subject'];
$thanks_text = $HTTP_POST_VARS['thanks_text'];
$mail_name = $HTTP_POST_VARS['mail_name'];
if ($email != ""){
$header_info = "MIME-Version: 1.0\r\n";
$header_info .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header_info .= "From: ".$mail_name." <".$my_email.">";
mail ($email,$reply_subject,$thanks_text,$header_info);
$header_info = "MIME-Version: 1.0\r\n";
$header_info .= "Content-type: text/html; charset=iso-8859-1\r\n";
$header_info .= "From: ".$name." <".$email.">";
$message = stripslashes($message);
mail ($my_email, $my_subject,
"Name:
$name
<br>
Email Address:
$email
<br>
Phone:
$phone
<br>
Message:
<br>
$message"
, $header_info);
}
?> |
Partager