<?
$companyname = $_POST['companyname'];
$contacter = $_POST['contacter'];
$address = $_POST['address'];
$telphone = $_POST['telphone'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = "bluecat.admin@gmail.com"; // 收件人
$subject = "您有一則新留言!!";
/* 信件格式為 html */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$headers .= "From: 系統管理員 <chris@gmail.com>\r\n";
/* 可以開始寄信了 */
mail($to, $subject, $message, $headers);
header("Location:success.php");
?> |