title: Sending email from website using Gmail SMTP server through PHP Mailer
body: <p>I am trying to send an email from my website using Gmail SMTP server through PHP Mailer,unfortunately it not sending its not showing anything like on processForm.php  ErrorInfo or Message has been sent ,below is my code can any one tell me why its not working</p>
  
  <p>processForm.php</p>
  
  <pre><code>&lt;?php
  
  print "hi";
  
  
  
  include "class.phpmailer.php"; // include the class file name
  $mail = new PHPMailer(); // create a new object
  $mail-&gt;IsSMTP(); // enable SMTP
  $mail-&gt;SMTPDebug = 1; // debugging: 1 = errors and messages, 2 = messages only
  $mail-&gt;SMTPAuth = true; // authentication enabled
  $mail-&gt;SMTPSecure = 'ssl'; 
  $mail-&gt;Host = "smtp.gmail.com";
  $mail-&gt;Port = 465; // or 587
  $mail-&gt;IsHTML(true);
  $mail-&gt;Username = "xxxxxxxxx6@gmail.com";
  $mail-&gt;Password = "xxxxxx";
  $mail-&gt;SetFrom("arokxavi16@gmail.com");
  $mail-&gt;Subject = "Test";
  $mail-&gt;Body = "hello";
  $mail-&gt;AddAddress("arokiaxavierraja16@gmail.com");
   if(!$mail-&gt;Send())
      {
      echo "Mailer Error: " . $mail-&gt;ErrorInfo;
      }
      else
      {
      echo "Message has been sent";
      }
  
      ?&gt;
  </code></pre>