سلام
من یک فرم نطر خواهی دارم که وقتی اطلاعات رو توش می نویسم و بر روی send کلیک می کنم فقط یک صفحه خالی به ایمیل من ارسال می شه. نمیدونم ایرادش کجاست.
این هم سرسش:
<?
$email_address = "[email protected]";
$email_name = "ORDER FROM SITE";
$next_page = "contact.thanks.htm";
$body = "";
$body .= "Name: " . $name . "\n";
$body .= "Company: " . $company . "\n";
$body .= "Location: " . $location . "\n";
$body .= "Phone: " . $phone . "\n";
$body .= "eMail: " . $email . "\n";
$body .= "website: " . $website . "\n";
$body .= "Message:\n " . ereg_replace("\n", "\n ", $message) . "\n";
$headers = "";
$headers .= "From: " . $email_name . " <" . $email_address . ">\n";
$headers .= "X-Sender: <" . $email_address . ">\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: <" . $email_address . ">\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
@mail($email_address, "New Contact From Site", "<pre>" . $body . "</pre>", $headers);
header("Location: " . $next_page);
?>
لطفا راهنمائی کنید.
من یک فرم نطر خواهی دارم که وقتی اطلاعات رو توش می نویسم و بر روی send کلیک می کنم فقط یک صفحه خالی به ایمیل من ارسال می شه. نمیدونم ایرادش کجاست.
این هم سرسش:
<?
$email_address = "[email protected]";
$email_name = "ORDER FROM SITE";
$next_page = "contact.thanks.htm";
$body = "";
$body .= "Name: " . $name . "\n";
$body .= "Company: " . $company . "\n";
$body .= "Location: " . $location . "\n";
$body .= "Phone: " . $phone . "\n";
$body .= "eMail: " . $email . "\n";
$body .= "website: " . $website . "\n";
$body .= "Message:\n " . ereg_replace("\n", "\n ", $message) . "\n";
$headers = "";
$headers .= "From: " . $email_name . " <" . $email_address . ">\n";
$headers .= "X-Sender: <" . $email_address . ">\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: <" . $email_address . ">\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
@mail($email_address, "New Contact From Site", "<pre>" . $body . "</pre>", $headers);
header("Location: " . $next_page);
?>
لطفا راهنمائی کنید.