title: new PHPMailer() destroys Session
body: <p>i've got a really curious error in my script, and i can't find the mistake.</p>
  
  <p>I want to send a Email via SMTP on an external Server, for example to a gmail-Server.
  After the Email was sent, the script should redirect to itself with an additional Parameter.
  The Session-ID is also stored as a $_GET-Parameter. My code is the following:</p>
  
  <pre><code>$mail = new PHPMailer();
      $mail-&gt;IsSMTP();
      $mail-&gt;SMTPAuth = false; 
      $webmaster_email = "hayo@gmail.com"; 
      $email="hayo@gmail.com"; 
      $name="Simon";
      $mail-&gt;From = $webmaster_email;
      $mail-&gt;FromName = "Simon";
      $mail-&gt;AddAddress($empfaenger, $row['name'] . " " .$row['name']);
      $mail-&gt;AddReplyTo($webmaster_email,"Webmaster");
      $mail-&gt;WordWrap = 50; 
      $mail-&gt;AddAttachment($filename); 
      $mail-&gt;IsHTML(false); 
      $mail-&gt;Subject = $betreff;
      $mail-&gt;Body = $nachricht; 
      $mail-&gt;AltBody = $nachricht; 
      if(!$mail-&gt;Send())
      {
          echo "Mailer Error: " . $mail-&gt;ErrorInfo;
      }
  header('Location: http://somedomain.com/somedirectory?sid='.$_GET['sid'].'&amp;step=step2&amp;message=a1');
  </code></pre>
  
  <p>The problem is now, that my Session always gets lost/destroyed, i don't know really what exactly.
  The curious thing is: The redirect works when i comment the 
      new PHPMailer(); 
  line out.</p>
  
  <p>I'm searching for the problem now several hours...i hope somebody is able to help me.</p>
  
  <p>Greetings,
  Simon</p>