title: PhpMailer send mail no error info
body: <p>I am trying to send mail and it just brought me to blank page. The echo had not been hit and i couldn't see the error. </p>
  
  <pre><code>try {
      $mail-&gt;SetFrom($email, $name);
      $mail-&gt;SMTPDebug  = 2;   
      $address = "xx@gmail.com";
      $mail-&gt;AddAddress($address, "xx");
      $mail-&gt;Subject = "Contact Form Submission | " . $name;
      $mail-&gt;MsgHTML($email_body);
      $mail-&gt;SMTPSecure = "tls"; 
      $mail-&gt;IsSMTP();
      $mail-&gt;Host = "smtp.gmail.com";
      $mail-&gt;Port = 587;
      $mail-&gt;SMTPAuth = true;
      $mail-&gt;Username = 'xx@gmail.com';
      $mail-&gt;Password = 'password1234';
  
      if (!$mail-&gt;Send()) {
          echo "Mailer Error: " . $mail-&gt;ErrorInfo;
          exit;
      }
      else
          echo 'sent';
      //header("Location: contact.php?status=thanks");
  } catch (phpmailerException $e) {
      echo 'error1';
  } catch (Exception $e) {
      echo 'error2';
  }
  </code></pre>