title: Send verification email not working
body: <p>I've got a php code to send verification mails to users but it doesn't work. First I put this code:</p>
  
  <pre><code>&lt;?php
  
  function Send_Mail($to,$subject,$body)
  {
      require 'class.phpmailer.php';
      $from       = "**************@gmail.com";
      $mail       = new PHPMailer();
      $mail-&gt;IsSMTP(true);            // use SMTP
      $mail-&gt;IsHTML(true);
      $mail-&gt;SMTPAuth   = true;                  // enable SMTP authentication
      $mail-&gt;Host       = "smtp.gmail.com"; // SMTP host
      $mail-&gt;Port       =  465;                    // set the SMTP port
      $mail-&gt;Username   = "**************@gmail.com";  // SMTP  username
      $mail-&gt;Password   = "***************";  // SMTP password
      $mail-&gt;SetFrom($from, 'From Name');
      $mail-&gt;AddReplyTo($from,'From Name');
      $mail-&gt;Subject    = $subject;
      $mail-&gt;MsgHTML($body);
      $address = $to;
      $mail-&gt;AddAddress($address, $to);
      $mail-&gt;Send();
  }
  
  $to      = 'piratapiton@gmail.com'; // Send email to our user
  $subject = 'Signup | Verification'; // Give the email a subject
  $message = '
  
  Thanks for signing up!
  Your account has been created, you can login with the following credentials after you have activated your account by pressing the url below.
  
  ------------------------
  Username: '.$name.'
  Password: '.$password.'
  ------------------------
  
  Please click this link to activate your account:
  http://www.yourwebsite.com/verify.php?email='.$email.'&amp;hash='.$hash.'
  
  '; // Our message above including the link
  
  $headers = 'From:noreply@yourwebsite.com' . "\r\n"; // Set from headers
  Send_Mail($to, $subject, $message); // Send our email
  ?&gt;
  </code></pre>
  
  <p>Then I downloaded the class.phpmailer.php and try it again but doesn't work.</p>
  
  <p>How I can resolve it?</p>