ob_start(); session_start(); require( 'captcha.class.php' ); $varification_code = $_REQUEST['verificationcode']; $chaid =$_SESSION[php_captcha]; $err = $_REQUEST['err']; function getExtension($str) { $i = strrpos($str, "."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str, $i + 1, $l); return $ext; } if($_REQUEST['type']=='freetrail') { if($chaid==$varification_code) { $fname = $_REQUEST['fname']; $lname = $_REQUEST['lname']; $cname = $_REQUEST['cname']; $website = $_REQUEST['website']; $location = $_REQUEST['location']; $country = $_REQUEST['country']; $email = $_REQUEST['email']; $cnumber = $_REQUEST['cnumber']; $besttime = $_REQUEST['besttime']; $preferred = $_REQUEST['preferred']; $comments = $_REQUEST['comments']; //$to = "swamyg@rpohire.com"; //$to = "swamyg@rpohire.com"; $to = "swamyg@rpohire.com"; require_once("Mail/class.phpmailer.php"); $mail = new PHPMailer(); $mail->SetLanguage("en", "Mail/language/"); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "localhost"; // SMTP server $mail->From = $email; $mail->FromName =$fname; // by Surendra 01/15/2007 $mail->WordWrap =50; // set word wrap to 50 characters $mail->IsHTML(true); // set email format to HTML $subject ='Contact Us'; $mail->Subject = $subject; $message = '
|
||||||||||||||||||||||||
Sincerely, | ||||||||||||||||||||||||
'.$fname.' | ||||||||||||||||||||||||