$msg='';
if(isset($_POST['name'])){
$ds=lsw('select','*','users','u_id=1');
$dt=&$lsw_data[$ds]['dt'];
if ($dt){
// $emailaddr = "chenbifan@yahoo.com.tw"; //"lee@good2u.org";
$emailaddr = $dt['u_tel'];
$mailer = $_POST['email'] ;
$subject = "客戶回應" ;
$message = "姓名:".$_POST['name']."
";
$message .= "信箱:".$_POST['email']."
";
$message .= "連絡電話:".$_POST['tel']."
";
$message .= nl2br($_POST['comment']);
lswmail($emailaddr,$mailer,$subject,$message) ;
$msg='alert("你的訊息已發送給管理員")';
} else {
$msg='alert("系統管理員的帳號取消,訊息無法寄達")';
}
}
?>