I have made a small adjustment in the coding
This was your coding
PHP Code:
<?
Error_Reporting(E_ALL & ~E_NOTICE);
while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);
$post_vars[key($_REQUEST)][0]=$pre_array[0];
$post_vars[key($_REQUEST)][1]=$pre_array[1];
}
next($_REQUEST);
}
reset($post_vars);
/**************************************************/
$subject="From ".$post_vars['your_name'][0] ;
$headers= "From: ".$post_vars['your_email'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="your email here") && (key($post_vars)!="your name here")) {
$message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>";
}
next($post_vars);
}
mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");
/******************************************/
?>
<script>
resizeTo(300, 300);
</script>
I have marked some coding within the /***********/. Replace that coding by the coding which i have given below.
PHP Code:
$subject="From ".$post_vars['your_name'][0] ;
$headers = "MIME-Version: 1.0\r\n";
$headers.= "Content-Type: text/html;";
$headers.= "Charset=iso-8859-1\r\n";
$headers.= "From: ".$post_vars['your_email'][0];
$message='';
while ($mess = current($post_vars))
{
if ((key($post_vars)!="i") && (key($post_vars)!="your email here") && (key($post_vars)!="your name here"))
{
$message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>";
}
next($post_vars);
}
$message = "<html><head> <title>Contact letter</title></head><body><br>".$message."</body></html>";
mail("put your email address here double quotes is needed", $subject, $message, $headers);
echo ("Your message was successfully sent!");
Replace the text in mail() function it with your email address in which you want to receive the mails. (within double quotes.)
I think this will do the job.