Company Name '.$compname.'
Office Address '.$officeadd.'
Name '.$name.'
Phone Number '.$phone.'
Email '.$email.'
Job Title '.$title.'
Message '.nl2br($message).'
'; require("class.phpmailer.php"); //require("phpunit.php"); $mail = new PHPMailer(); $name = trim("Job-Hunter Employment Agency"); $email = trim("info@job-hunter.com.hk"); $sendername = trim("Job-Hunter Employment Agency"); $from = trim("info@job-hunter.com.hk"); $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 Form"; //$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(); $mail->AddAddress("info@job-hunter.com.hk"); //$mail->AddAddress("hmwongaa@gmail.com"); $mail->AddAddress("casper@smartinfo.com.hk"); // $mail->AddAddress("jason@smartinfo.com.hk"); //print $body; //exit; $result = $mail->Send(); if ($result){ $printresult = ""; /* window.location='index.php';*/ /*$printresult = ""; */ } else { $printresult = " alert('Sorry! Please try again later.'); history.back(); "; /* $printresult = "";*/ /* history.back(); $printresult = ""; */ } //================== print $printresult; ?>