|
if ($_POST['Mode'] == "Post_Send"){
if (strtolower($_SESSION['AuthCode']) != strtolower($_POST['PostAuthCode']) || $_POST['PostAuthCode'] == ""){
err_msg2("對不起,您的認證圖片輸入錯誤!");
exit;
}
//載入寄信class
require("./includes/class/class.phpmailer.php");
$mail = new phpmailer();
$mail->From = $_POST['Email'];
$mail->FromName = $_POST['Name'];
$mail->AddAddress($System['SiteMail'], $System['SiteName']);
$mail->SetLanguage("en", "./includes/class/phpmailer/language/");
$mail->CharSet = "utf-8";
$mail->IsHTML(true);
$SendTime = date("Y-m-d H:i:s");
$SendIP = GetIP();
//載入信件內容
require("./includes/mailtemp/mail.php");
$mail->Subject = $System['SiteName']."的線上詢價-".$SendTime;
$mail->Body = $Msg;
$mail->AltBody = $MsgAlt;
if(!$mail->Send())
{
err_msg("發生錯誤:".$mail->ErrorInfo);
}
ok_msg2("已寄出,我們會盡快的跟您聯絡!!","index.php");
}
?>
|
|
|
|