title: problems with server SMTP PHPMailer
body: <p>I have a problem with phpmailer, I have the correct SMPT server data and also the username and password, but it still marks me an error in the credentials, this is my code </p>
  
  <pre><code>  &lt;?php 
  include ("class.phpmailer.php");
  include ("../vendor/phpmailer/phpmailer/PHPMailer.php");
  include ("../vendor/phpmailer/phpmailer/src/SMTP");
   // Import PHPMailer classes into the global namespace
      // These must be at the top of your script, not inside a function
      use PHPMailer\PHPMailer\PHPMailer;
      use PHPMailer\PHPMailer\Exception;
  
      require '../vendor/phpmailer/phpmailer/src/Exception.php';
      require '../vendor/phpmailer/phpmailer/src/PHPMailer.php';
      require '../vendor/phpmailer/phpmailer/src/SMTP.php';
      require '../vendor/autoload.php';
  
      $name = trim(stripslashes($_POST['contactName']));
      $email = trim(stripslashes($_POST['contactEmail']));
      $subject = trim(stripslashes($_POST['contactSubject']));
      $contact_message = trim(stripslashes($_POST['contactMessage']));
  
  
      // Load Composer's autoloader
  
  
      // Instantiation and passing `true` enables exceptions
  
      $mail = new PHPMailer(true);
      try {
  
       //Server settings
      $mail-&gt;SMTPDebug = 2;                                       // Enable verbose debug output
       $mail-&gt;isSMTP();                                            // Set mailer to use SMTP
       $mail-&gt;Host       = 'smtp.gmail.com';  // Specify main and backup SMTP servers
       $mail-&gt;SMTPAuth   = true;                                   // Enable SMTP authentication
       $mail-&gt;Username   = 'admin@ucarolina.mx';                     // SMTP username
       $mail-&gt;Password   = '******';                             // SMTP password
       $mail-&gt;SMTPSecure = 'TSL';                                  // Enable TLS encryption, `ssl` also accepted
       $mail-&gt;Port       = 587;                                    // TCP port to connect to
  
  
          //Recipients
          $mail-&gt;setFrom('luribe@qvoz.com');
          $mail-&gt;addAddress($email, $name);     // Add a recipient
  
  
          // Content
          $mail-&gt;isHTML(true);                                  // Set email format to HTML
          $mail-&gt;Subject = $subject;
          $mail-&gt;Body    = $contact_message;
          $mail-&gt;AltBody = $contact_message;
  
          $mail-&gt;send();
         echo "Mensaje enviado";
      } catch (Exception $e) {
          echo "Message could not be sent. Mailer Error: {$mail-&gt;ErrorInfo}";
      }
  
  
  ?&gt;
  </code></pre>
  
  <p>and this is the error that marks me 
  SMTP Error: Could not authenticate.
  Message could not be sent. Mailer Error: SMTP Error: Could not authenticate.</p>