title: phpmailer doesn't send emails (security failure)
body: <p>this is the code i'm using:</p>
  
  <pre><code>$mail = new PHPMailer;
  $mail-&gt;isSMTP();
  $mail-&gt;SMTPDebug = 2;
  $mail-&gt;Debugoutput = 'html';
  $mail-&gt;Host = "server.example.com'";
  $mail-&gt;Port = 587;
  $mail-&gt;SMTPAuth = true;
  $mail-&gt;Username = "noreply@example.com'";
  $mail-&gt;Password = "password";  
  $mail-&gt;setFrom('from@example.com', 'First Last');
  $mail-&gt;addReplyTo('replyto@example.com', 'First Last');
  $mail-&gt;addAddress('to@example.com'', 'John Doe');
  $mail-&gt;Subject = 'PHPMailer SMTP test';
  $mail-&gt;msgHTML("hello you ");
  $mail-&gt;AltBody = 'This is a plain-text message body';
  if (!$mail-&gt;send()) {
    echo "Mailer Error: " . $mail-&gt;ErrorInfo;
  } 
  else {
    echo "Message sent!";
  }
  </code></pre>
  
  <p>this is the error code i get using debug</p>
  
  <p>SERVER -> CLIENT: 220-server.example.com ESMTP Exim 4.89 #1 Sat, 09 Dec 2017 06:56:21 -0600 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
      CLIENT -> SERVER: EHLO example.com
      SERVER -> CLIENT: 250-server.example.com Hello example.com   [<strong><em>.</strong>.<strong></em>.*</strong>]250-SIZE 52428800250-8BITMIME250-PIPELINING250-AUTH PLAIN LOGIN250-STARTTLS250 HELP
      CLIENT -> SERVER: STARTTLS
      SERVER -> CLIENT: 220 TLS go ahead
      SMTP Error: Could not connect to SMTP host.
      CLIENT -> SERVER: QUIT
      SERVER -> CLIENT: ecurity failure554 Security failure
      SMTP ERROR: QUIT command failed: ecurity failure554 Security failure
      SMTP connect() failed. <a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" rel="nofollow noreferrer">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a>
      Mailer Error: SMTP connect() failed. <a href="https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting" rel="nofollow noreferrer">https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting</a> </p>
  
  <p>what is the problem here?</p>