親愛的'.$name.',

感謝閣下對中順證券期貨有限公司的支持,您申請'.$typeofemail2.'模擬戶口的資料已收妥如下,

姓名:'.$name.'
電郵:'.$mail.'
電話:'.$tel.'

我們的客服主任會儘快與您聯絡,如有以上信息有誤或者有任何問題請致電客戶服務部 +852 3101 0504。

謝謝

中順證券期貨
客戶服務部
'; $message_en=' Document
Dear '.$name.',

Thank you for your support to Sino-Rich Securities & Futures Limited, your application of '.$typeofemail2.' demo account is submitted,

Name: '.$name.'
Email: '.$mail.'
Tel: '.$tel.'

Our customer service officer will contact you as soon as possible, and if there are any enquiries, please contact us at +852 3101 0504.

Yours Sincerely,

Sino-Rich Securities & Futures Limitedbr
Customer Service Department
'; $message_sc = ' Document
亲爱的'.$name.',

感谢阁下对中顺证券期货有限公司的支持,您申请'.$typeofemail2.'模拟户口的资料已收妥如下,

姓名:'.$name.'
电邮:'.$mail.'
电话:'.$tel.'

我们的客服主任会尽快与您联络,如有以上信息有误或者有任何问题请致电客户服务部 +852 3101 0504。

谢谢

中顺证券期货
客户服务部
'; switch ($lang){ case 'tc': $msg=$message_tc; break; case 'sc': $msg=$message_sc; break; case 'en': $msg=$message_en; break; } // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; // Additional headers $headers .= 'To: '.$name2.' <'.$mail.'> , Sino-Rich ' . "\r\n"; // $headers .= 'From: Sino-Rich ' . "\r\n"; // Mail it $rs=mail($to, $subject, $msg, $headers); // $rs?"yes":die('no'); //echo $msg header("location:$url"); ?>