title: Why is PHP mailer printing mimeheader to screen after send?
body: <p>Here is the problem, I have just implemented PHPMailer and it is printing the Mime Header to the screen after the email is sent.  I am using the latest PHPMailer code listed on GITHUB, and I have gone through virtually everything but cant find any reason why this is printing to the screen.  Let me know if you need anymore information.  I cant seem to think of anything else.  See below:  </p>
  
  <pre><code>2013-09-30 20:37:14 CLIENT -&gt; SERVER: AUTH LOGIN
  2013-09-30 20:37:14 CLIENT -&gt; SERVER: ZGFwaWVjaG9jxXlAZ21haWwuY29t
  2013-09-30 20:37:14 CLIENT -&gt; SERVER: ZHBpZT5HNzE=
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: MAIL FROM:&lt;xxxxx@xxxxxx.com&gt;
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: RCPT TO:&lt;yyyyy@yyyyyyy.com&gt;
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: DATA
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Date: Mon, 30 Sep 2013 16:37:14 -0400
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Return-Path: &lt;xxxxx@xxxxxxx.com&gt;
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: To: Someone &lt;yyyyyy@yyyyyyyy.com&gt;
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: From: xxxxxxx xxxxx &lt;xxxxx@xxxxxxx.com&gt;
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Subject: xxxxxxx.com Confirmation
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Message-ID: &lt;c22a17772edd75gh89td324ac0fe67ae@localhost&gt;
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: X-Priority: 3
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: MIME-Version: 1.0
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Content-Type: multipart/alternative;
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:   boundary="b1_c22a17772edd75gh89td324ac0fe67ae"
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Content-Transfer-Encoding: 8bit
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: --b1_c22a17772edd75gh89td324ac0fe67ae
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Content-Type: text/plain; charset=iso-8859-1
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Content-Transfer-Encoding: 8bit
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: This is the text body of the message, it is 
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: printed here.  blah blah blah
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: --b1_c22a17772edd75gh89td324ac0fe67ae
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Content-Type: text/html; charset=iso-8859-1
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: Content-Transfer-Encoding: 8bit
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: This is the alternate text body for non-html email that may or may no be reading this.
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: This is also the text body
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: --b1_c22a17772edd79e8f6fd324ac0fe67ae--
  2013-09-30 20:37:15 CLIENT -&gt; SERVER:
  2013-09-30 20:37:15 CLIENT -&gt; SERVER: .
  2013-09-30 20:37:16 CLIENT -&gt; SERVER: QUIT
  </code></pre>
  
  <p>Here is the implementing code:</p>
  
  <pre><code>require("class.phpmailer.php");
  
  $mail = new PHPMailer;
  
  $mail-&gt;From = 'xxxxx@xxxxxxx.com';
  $mail-&gt;FromName = 'xxxxxxx xxxxx';
  $mail-&gt;addAddress($email, $fname);                  
  $mail-&gt;addReplyTo('', '');
  $mail-&gt;IsSMTP();                            
  $mail-&gt;SMTPDebug = 1;                       
  $mail-&gt;SMTPAuth = true;                         
  $mail-&gt;SMTPSecure = 'ssl';                      
  $mail-&gt;Host = "smtpout.secureserver.net ";
  $mail-&gt;Port = 465;                          
  $mail-&gt;Username = "xxxxx@xxxxxxx.com";
  $mail-&gt;Password = "password";
  $mail-&gt;WordWrap = 50;                                       
  $mail-&gt;isHTML(true);                                        
  
  $mail-&gt;Subject = 'xxxxxxx.com Confirmation';
  $mail-&gt;Body    = "This is the text body of the message, it is printed here.  blah blah blah";
  $mail-&gt;AltBody = "This is the alternate text body for non-html email that may or may no be reading this.&lt;br /&gt;This is also the text body";
  
  if(!$mail-&gt;send()) {
     echo 'Message could not be sent.';
     echo 'Mailer Error: ' . $mail-&gt;ErrorInfo;
     exit;
  }
  </code></pre>