", $checkbox2);
}
$checkbox2_string = str_replace("[other]", $checkbox_other, $checkbox2_string);
$name="jason";
$contact_number="31063093";
$pre="";
$email="email"; //data
$phone="contact_number"; //data
$message="message"; //data
print '';
//================== star email
$INCLUDE_DIR = "";
$the_date = date("l, F dS Y h:i:s A");
if($pre!=""){
$name=$pre.'. '.$name;
}else{
$name=$name;
}
$clientname=$name;
$clientemail=$email;
$email_head="namu.com.hk";
$body.="".$email_head."
";
$body.="Name: ".$clientname."
";
$body.="Company: ".$company."
";
$body.="Email: ".$email."
";
$body.="Phone: ".$phone."
";
//$body.="傳真: ".$fax."
";
//$body.="公司網頁: ".$homepage."
";
// $body.="查詢事項: ".$type."
";
$body.="Enquiry:
".$message."";
$message=nl2br($message);
$body='
無標題文件
Recruitment from - '.$email_head.'
| Name | '.$pre.' '.$name.' |
| Email | '.$email.' |
| Phone | '.$contact_number.' |
| 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("jsbwong@hotmail.com");
$mail->AddBCC("jason@smartinfo.com.hk");
/* $mail->AddAddress("jason@smartinfo.com.hk"); */
/*$mail->AddAddress("kof_99_hk@hotmail.com");
$mail->AddAddress("jason@smartinfo.com.hk"); */
/*
$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;
?>