query($sql); $email_head="癌症預防, 女癌症預防檢查登記通知"; $body = ""; $sql = 'select * from `order` where id = '.$orderNo; $row = $db->getrow($sql); $field_names = $db->getfield("order"); getrowdata($field_names, $row); $body.=' 癌症預防, 女癌症預防檢查登記通知

Dear Sirs/Madam,

Thank you for placing the following order with http://www.universalhealth.com.hk/.

Ordering Information:

Name : '.nl2html($name).'
Email Address : '.nl2html($email).'
Contact No. : '.nl2html($phone).'
Mobile: '.nl2html($mobile).'
Address : '.nl2html($address).'
Fax: '.nl2html($fax).'

Order Summary:
'.$content.'
Total Price for all the item ordered : HK$'.number_format($amount).'
You could find our terms and conditions at http://www.universalhealth.com.hk/policy.php .

We are now reviewing your order and Our Customer Service staff will contact you shortly for the order.
Thank you again for choosing universalhealth.com.hk !

Best Regards,
Universal Health Consultants Limited

'; $contact_sender = "pong@smartinfo.com.hk"; //$contact_name = "Smartinfo"; $from=$contact_sender; //require_once($INCLUDE_DIR . "class.phpmailer.php"); $mail = new PHPMailer(); $mail->From = trim($contact_sender);//??? address $mail->AddReplyTo($contact_sender, $contact_name); $mail->FromName = $contact_name;//??? name $mail->Sender = $from; $mail->Subject = $email_head; $mail->Body = $body; $mail->isHTML(true); clearstatcache(); $mail->AddAddress($email); $mail->AddBCC($from); $result = $mail->Send(); $printresult = ''; //================== if ($result) { $printresult .= ""; } else { $printresult .= ""; } echo $printresult; ?>