<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Sendemail Script</title>
</head>
<body background="../../../background.jpg">
<body>

<?php

$ip = $_POST['ip']; 
$httpref = $_POST['httpref']; 
$httpagent = $_POST['httpagent']; 
$visitor = $_POST['visitor']; 
$visitormail = $_POST['visitormail']; 
$notes = $_POST['notes'];
$attn = $_POST['attn'];


if (eregi('http:', $notes)) {
die ("Do NOT try that! ! ");
}
if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,"."))) 
{
echo "<h2>Use Back - Enter valid e-mail</h2>\n"; 
$badinput = "<h2>Feedback was NOT submitted</h2>\n";
echo $badinput;
die ("Go back! ! ");
}

if(empty($visitor) || empty($visitormail) || empty($notes )) {
echo "<h2>Use Back - fill in all fields</h2>\n";
die ("Use back! ! "); 
}

$attn = $attn ; 
$subject = " Article on ARC "; 

$notes = stripcslashes($notes); 

$message = " $todayis  \n
Message: $notes \n 
From: $visitor ($visitormail)\n
Regarding this article : $httpref \n
";


$from = "From: $visitormail\r\n";


mail("Olivier.Barles@internationalsos.com", $subject, $message, $from);

?>

<p align="left">
<body background="../../../background.jpg">
 
<br />
From : <?php echo $visitor ?> ( <?php echo $visitormail ?> ) 
<br />

 <?php echo $attn ?>
<br /> 
Message:<br /> 
<br />
<?php $notesout = str_replace("\r", "<br/>", $notes); 
echo $notesout; ?> 
<br />
<?php echo $ip ?>
<br />
<br />
<a> Your e-mail has been sent.  Thanks!!! </a> 
<form action="0">
<input type="button" value="Close Window" onclick="window.close()">
</form>
<br /><br />
 
</p> 

</body>
</html>