SMTP Error: Could not authenticate for gmail.
      $mail      = new PHPMailer();

      $mail->IsSMTP(); // telling the class to use SMTP
      $mail->SMTPAuth      = true;                  // enable SMTP authentication
      $mail->SMTPKeepAlive = true;                  // SMTP connection will not close after each email sent
      $mail->Host          = "smtp.gmail.com"; // sets the SMTP server
      $mail->Port          = 465;                    // set the SMTP port for the GMAIL server
      $mail->Username      = "12345@gmail.com"; // SMTP account username
      $mail->Password      = "99999";        // SMTP account password
SMTP Error: Could not authenticate for gmail.
===

      $mail      = new PHPMailer();

      $mail->IsSMTP(); // telling the class to use SMTP
      $mail->SMTPAuth      = true;                  // enable SMTP authentication
      $mail->SMTPKeepAlive = true;                  // SMTP connection will not close after each email sent
      $mail->Host          = "smtp.gmail.com"; // sets the SMTP server
      $mail->Port          = 465;                    // set the SMTP port for the GMAIL server
      $mail->Username      = "12345@gmail.com"; // SMTP account username
      $mail->Password      = "99999";        // SMTP account password