這是我迄今爲止..如何使一個接觸的形式發送確認郵件到用戶?
$full_name = $_REQUEST['full_name'] ;
$company = $_REQUEST['company'] ;
$abn = $_REQUEST['abn'] ;
$customer_number = $_REQUEST['customer_number'] ;
$about = $_REQUEST['about'] ;
$areacode = $_REQUEST['areacode'] ;
$telephone = $_REQUEST['telephone'] ;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$body =" Full Name: ".$full_name."\n
Company: ".$company."\n
ABN: ".$abn."\n
Customer Number: ".$customer_number."\n
About: ".$about."\n
Area Code: ".$areacode."\n
Telephone: ".$telephone."\n
Email: ".$email."\n
Message: ".$message;
$to = "$email";
mail("[email protected]", "Contact Us Form", $body, "From: $email");
,這是不工作...怎麼樣? –
向用戶發送電子郵件,就像你給自己發送的電子郵件。 –
你執行了這個嗎?有沒有PHP引發的錯誤? – deex