if(isset($_POST['Submit'])){
include_once('include/class.phpmailer.php');
include_once('include/send_phpmail.php');
include_once('include/js_output.php');
function ChangContent($NewContent){
$NewContent=str_replace("\r\n","
",$NewContent);
return $NewContent;
}
//$to='power@zhan-yang.com.tw';
/*$to='sue1500538@yahoo.com.tw, miasasha@gmail.com';
$subject='憲政辦事處客服表單';
$headers='MIME-Version: 1.0' . "\r\n";
$headers.='Content-type: text/html; charset=big5' . "\r\n";
$headers.='From: 憲政辦事處網站 <>' . "\r\n";*/
for($room=0;$room
';
$msg.= '
姓 名:
'.$_POST['name'].'
性 別:
'.$_POST['gender'].'
電 話:
市話:'.$_POST['code'].'-'.$_POST['tel'].'
手機:'.$_POST['mobile'].'
電子郵件:
'.$_POST['email'].'
客戶意見及服務需求:
'.ChangContent($_POST['memo']).'