ALI4GHA
Member
سلام
بدون شرح :
به نظر شما مشکلش کجاست ؟؟
ایمیل ارسال نمی کنه
بدون شرح :
PHP:
<?php
// Receiving variables
@$Name = addslashes($_POST['Name']);
@$Business_Phone = addslashes($_POST['Business_Phone']);
@$email = addslashes($_POST['email']);
@$Comments = addslashes($_POST['Comments']);
// Validation
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $email))
{
header("Location: error.html");
exit;
}
//Sending Email to form owner
# Email to Owner
$pfw_header = "From: $email";
$pfw_subject = "mysite Contact Form";
$pfw_email_to = "[email protected]";
$pfw_content_type = "Content-Type: text/html; charset=UTF-8";
//......................................
$pfw_message = "Name: $Name\n"
. "Email: $email\n"
. "Business_Phone: $Business_Phone\n"
. "Comments: $Comments\n"
. "\n"
. "Provided By: Ali mysite\n"
. "http://www.mysite.info";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ,$pfw_content-type ) ;
//Sending auto respond Email to user
# Email to Owner
$pfw_header = "From: [email protected]";
$pfw_content_type = "Content-Type: text/html; charset=UTF-8";
//......................................
$pfw_subject = "mysite Contact Form";
$pfw_email_to = "$email";
$pfw_message = "Name: $Name\n"
. "Email: $email\n"
. "Business_Phone: $Business_Phone\n"
. "Comments: $Comments\n"
. "\n"
. "Provided By: Ali mysite\n"
. "http://www.mysite.info";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ,$pfw_content-type ) ;
header("Location: thank_you.html");
?>
ایمیل ارسال نمی کنه
آخرین ویرایش: