", $checkbox2);
}
$checkbox2_string = str_replace("[other]", $checkbox_other, $checkbox2_string);
$array=$db->getrow("SELECT * FROM `country` where 1 and id=".escapeit($country)." ");
$country_text=$array["name"];
print '';
//================== star email
$INCLUDE_DIR = "";
$the_date = date("l, F dS Y h:i:s A");
$clientname=$name;
$clientemail=$email;
$email_head="job-hunter.com.hk";
$body.="".$email_head."
";
$body.="Name: ".$clientname."
";
$body.="Company: ".$company."
";
$body.="Email: ".$email."
";
$body.="Contact No: ".$contact_no."
";
//$body.="傳真: ".$fax."
";
//$body.="公司網頁: ".$homepage."
";
// $body.="查詢事項: ".$type."
";
$body.="Enquiry:
".$message."";
$message=nl2br($message);
$body='
無標題文件
Enquiry from - '.$email_head.'
| Name | '.$name.' |
| Company | '.$company.' |
| Email | '.$email.' |
| Country | '.$country_text.' |
| Title | '.$title.' |
| Message | '.$message.' |
|
';
$sendername=$clientname;
$from=$clientemail;
//require("phpunit.php");
require($INCLUDE_DIR . "class.phpmailer.php");
$mail = new PHPMailer();
$name = trim($name);
$email = trim($email);
//$mail->From = trim($from);//??? address
//$mail->ReplyTo = trim($from);
$mail->AddReplyTo(trim($from), $sendername);
$mail->FromName = trim($sendername);//??? name
$mail->Sender = trim($from);
//$mail->Subject = "".trim($title); //??
//$mail->Subject = "Enquiry from ".trim($clientname);
$mail->Subject = "Enquiry from - ".$email_head;
//$body=$body;
//$body = "Date: $the_date\nName: $name\nCountry: $country\nCity: $city\nEmail: $email\n\nComment:\n$comment\n\n\n-----Enquiry Basket-----\n\n$items---------------------";
$mail->Body = $body;//??html????????
$mail->isHTML(true);
clearstatcache();
/*print $type_string2.'
';
print $email_address;*/
$mail->AddAddress("jhterry@biznetvigator.com");
$mail->AddAddress("info@job-hunter.com.hk");
// $mail->AddAddress("jason@smartinfo.com.hk");
/* $mail->AddAddress("info@job-hunter.com.hk"); */
/*$mail->AddBCC("jason@smartinfo.net"); */
/* $mail->AddAddress("jason@smartinfo.net"); */
/*$mail->AddAddress("kof_99_hk@hotmail.com");
$mail->AddAddress("jason@smartinfo.net"); */
/*
$mail->AddAddress("kof_99_hk@hotmail.com");
$mail->AddAddress("kof_99_hk@hotmail.com");
$mail->AddAddress("jason@smartinfo.com"); */
/*$mail->AddBCC("kof_99_hk@hotmail.com"); */
//print $body;
//exit;
$result = $mail->Send();
if ($result)
{
$printresult = "";
/* window.location='index.php';
$printresult = "";
*/
}
else
{
$printresult = "";
/* history.back(); $printresult = "";
*/
}
//==================
print $printresult;
?>