ערכתי לאחרונה בתאריך 04.09.07 בשעה 17:55 בברכה, asaf shabat
יש לי סקריפט לשליחת דואר אלי, דרך האתר.
כאשר מי שרושם באתר את הנתנוים כמו נושא ההודעה, תוכן, וכו'...
אני לא מצליח לקרוא את ההודעה במייל מכיוון שהיא בג'יבריש......
מישהו יכול לתקן לי את הסקריפט?...תודה מראש והנה הסקריפט:
<?php
/* -----------------------------------------------------------------------------
SimplytheBest SendForm 1.23 PHP version
Copyright (c) 2004-2007 by SimplytheBest Inc.
http://simplythebest.net
This script may be used freely as long as the copyright notice and the footer
message remain in place. To remove the footer message from the form page, you must
purchase a license to remove the footer!
------------------------------------------------------------------------------*/
/* SET VARIABLES */
$to = "[email protected]"; //email address to receive the email
/*-----------------------------------------------------------------------*/
if ($_SERVER <> "POST")
die ("You did not send this email from our form");
$error1=$_POST;
unset ($_POST);
if (isset($_POST) && $_POST<>''){
$from = $_POST;
$subject = $_POST;
$body="";
$return1=$_POST;
unset ($_POST);
while (list($key,$value) = each($_POST)){
$value = stripslashes($value);
$body.= ucwords($key).": ".$value."\r\n";
}
$header = "";
$header = "From: ". $from ."\r\n"."Reply-To: ". $from ."\r\n";
$header.= "User-agent: SimplytheBest SendForm 1.23\r\n";
$header.= "Content-Type: text/plain; charset=iso-8859-1\r\n";
$header.= "Content-Transfer-Encoding: 8bit\r\n";
mail ($to,$subject,$body,$header);
header ("Location:".$return1);
die();
}
else {
header ("Location:".$error1."?msg=".urlencode("Invalid Data"));
die();
}
?>
