samin.
Member

عملا درست كار مينه ولي بعد از ارسال پيغام به ايميل صفحه تشكر از كاربر رو بعد از سابميت كردن نشون نميده و پيغام زير مياد :
the page can not be opend + آدرس صفحه اندكس سايت
ولي وقتي ميرم ايميلو نيگا مي كنم مي بينم كه پيغام رسيده
اگه كسي بلده لطفا كمك كنه
اگه ميخواين كدشو براتون ميزام(php ):
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>New Page 2</title>
</head>
<body>
<?
$email_address = "[email protected]";
$email_name = "ppt-co";
$next_page = "thanks.html";
$body = "";
$body .= "NAME: " . $name . "\n";
$body .= "FAMILY: " . $family . "\n";
$body .= "COMPANY: " . $company . "\n";
$body .= "PHONE: " . $phone . "\n";
$body .= "SELECT: " . $select . "\n";
$body .= "CHECK: " . $chek1 . "" . $chek2 . "" . $chek3 . "\n";
$body .= "RADIO: " . $radio . "\n";
$body .= "EMAIL: " . $email . "\n";
$body .= "WEBSITE: " . $website . "\n";
$body .= "MESSAGE:\n " . ereg_replace("\n", "\n ", $message) . "\n";
$headers = "";
$headers .= "From: " . $ppt-co . " <" . [email protected] . ">\n";
$headers .= "X-Sender: <" . [email protected] . ">\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: <" . [email protected] . ">\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
@mail([email protected], "Contact Center", "<pre>" . $body . "</pre>", $headers);
header("Location: " . $next_page);
//This sends a confirmation to your visitor
mail("$email","تشكر پيام", "Hi $name,\n
از ارسال شما به شركت پارسا پردازشگران متشكريم !\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Done!";
$send_answer = " MERSI ";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
?>
</body>
</html>[/RIGHT][/LEFT][/CENTER][/LEFT][/LEFT]