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 = '
 
Contact US
Full Name   '.$fname.'
Company Name   '.$cname.'
Country   '.$country.'
Email ID   '.$email.'
Contact Number   '.$cnumber.'
Best time to call   '.$besttime.'

Comments:

  '.$comments.'
 
Sincerely,
'.$fname.'
 
'; $mail->Body = $message; $mail->AltBody = $message; $mail->AddAddress($to); // $ok =$mail->Send(); if(!$mail->Send()) { //$result="Error in sending email to the user."; header("location:result.php?msg=2"); } else { //$result="You have been submitted Successfully."; header("location:result.php?msg=1"); } } else { header("location:contact.php?err=1"); } } ?> Untitled Document
Please Enter Correct Verfication Code!
Full Name   Company  
Phone   Email  
Country        

Comments:

 
Verification code   verification code
Verification code