0 ) { // // $category_name = ''; $category_name.= ( $category_name != '') ? ', ' : ''; if ( isset($chkEnqType_1) && $chkEnqType_1 == '1' ) { $category_name.= ( $category_name != '') ? ', ' : ''; $category_name.= '
'; // $category_name.= "Property Auction"; $category_name.= "物業拍賣服務"; } if ( isset($chkEnqType_2) && $chkEnqType_2 == '2' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Chattels and Machinery"; $category_name.= "雜項拍賣服務"; } if ( isset($chkEnqType_3) && $chkEnqType_3 == '3' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Property Agency"; $category_name.= "代理服務"; } if ( isset($chkEnqType_4) && $chkEnqType_4 == '4' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Mortgage / Exclusive Properties"; $category_name.= "銀主/獨家物業查詢"; } if ( isset($chkEnqType_5) && $chkEnqType_5 == '5' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Property Valuation"; $category_name.= "專業測量估值服務"; } if ( isset($chkEnqType_6) && $chkEnqType_6 == '6' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Development Consultancy"; $category_name.= "物業發展顧問服務"; } if ( isset($chkEnqType_7) && $chkEnqType_7 == '7' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Tenancy Management"; $category_name.= "租務管理服務"; } if ( isset($chkEnqType_8) && $chkEnqType_8 == '8' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Mortgage Referral"; $category_name.= "按揭轉介服務"; } if ( isset($chkEnqType_9) && $chkEnqType_9 == '9' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Corporate Property Management"; $category_name.= "企業物業管理服務"; } if ( isset($chkEnqType_10) && $chkEnqType_10 == '10' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Retail Shops"; $category_name.= "旺舖租售服務"; } if ( isset($chkEnqType_11) && $chkEnqType_11 == '11' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "PRC Valuation"; $category_name.= "國內估值服務"; } if ( isset($chkEnqType_12) && $chkEnqType_12 == '12' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Building Consultancy"; $category_name.= "建築顧問服務"; } if ( isset($chkEnqType_13) && $chkEnqType_13 == '13' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Rates Objection"; $category_name.= "差餉反對服務"; } if ( isset($chkEnqType_14) && $chkEnqType_14 == '14' ) { $category_name.= ( $category_name != '') ? ',
' : ''; $category_name.= '
'; // $category_name.= "Others"; $category_name.= "其他服務"; } $category_name.= ( $category_name != '') ? '
' : ''; if ($_POST['chkGetNL'] == 'Y') { $get_lateste_news = '願意'; } else { $get_lateste_news = '不願意'; } if ($_POST['chkNoWish'] == 'Y') { $agreement = '不同意'; } else { $agreement = '同意'; } $subject = "Enquiries From #".date('YmdHis'); $content = ''; $content.= '

Details of Enquiries Form

'; $content.= '
'; $content.= '
'; $content.= '即時網上查詢:'; $content.= ''.$category_name.''; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '姓名:'; $content.= ''.$_POST['txtName'].''; $content.= '
'; $content.= ''; $content.= '
'; $content.= '
'; $content.= '聯絡電話:'; $content.= ''.$_POST['txtContact'].''; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '電郵:'; $content.= ''.$_POST['txtEmail'].''; $content.= '
'; $content.= '
'; $content.= ''; $content.= '
'; $content.= '
'; $content.= '查詢項目地址:'; $content.= ''.$_POST['txtAddress'].''; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '查詢內容:'; $content.= ''.nl2br($_POST['txtComment']).''; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '使用個人資料作直接促銷:'; $content.= ''.$agreement.''; $content.= '
'; $content.= '
'; $content.= '
'; $content.= '
'; $content.= 'This is an auto-generated email. Hence, please note that we are unable to respond even if you reply to this email.'; $content.= '
'; // // echo ''; // echo $subject; // echo '
'; // echo $content; // echo '
'; // echo '
'. htmlspecialchars(print_r($_POST,true)).'
' ; // exit(); // $mailOn9Shp = 'forward1@cssurveyors.com'; $mailOn9Shp = 'easttech.dev@gmail.com'; $mailTo = $txtEmail; $msg = wordwrap( $content , 80 ); // $mail = new PHPMailer; $mailFrom = "no-reply@websiteappp.com"; $mailFromName = $shopName; $mail->Host = 'vps8594-ms1.youdomain.hk'; $mail->Hostname = $_SERVER['SERVER_NAME']; $mail->Port = 25; $mail->Username = 'vps8594-ms1'; $mail->Password = 'cKwM2NX('; $mail->setFrom($mailFrom, $mailFromName); $mail->From = $mailFrom; $mail->FromName = $mailFromName; $mail->addAddress($mailTo, $mailTo); $mail->addBCC($mailOn9Shp, $mailOn9Shp); $mail->Subject = $subject; $mail->Body = $content; $mail->AltBody = $msg; $mail->IsHTML(true); $mail->CharSet = 'UTF-8'; $mail->SMTPSecure = ''; $mail->SMTPAuth = false; $mail->Mailer = "smtp"; $mail->send(); $rtnUrl = 'enquiry.php?msg=ok'; header('location: '.$rtnUrl); exit(); } ?>