title: Swiftmailer is using the same file for multiple attachments
body: <p>I'm using the yii-mail module for Yii, which is based on the Swiftmailer. I was trying to send mutiple attachments in one email and it doesn't seem to work right.</p>
  
  <p>Here's the code</p>
  
  <pre><code> $agbpath        = 'path\\to\\file.pdf';
   $agb1path       = 'path\\to\\anotherfile.pdf';
  
   $message        = new YiiMailMessage;
  
   $message-&gt;setSubject('TEST')
   -&gt;setFrom(array('someone@test.com' =&gt; 'Someone'))
   -&gt;setTo(array('recipient@test.com'))
   -&gt;setBcc(array('copy@test.com'))
   -&gt;setBody('LoremIpsum', 'text/html')
   ;
   $message-&gt;attach(Swift_Attachment::fromPath("$agb1path"));
  
   $message-&gt;attach(Swift_Attachment::fromPath("$agbpath"));
  
   Yii::app()-&gt;mail-&gt;send($message);
  </code></pre>
  
  <p>Both files exist but every time both attachments contain the same file although with different filenames. I tried changing the order and this only changes which file is being sent in both attachments.</p>
  
  <p>The whole thing is running on Zend Server on Windows Server 2008 R2.</p>
  
  <p>As you see I even tried using just hardcoded values, so that errors from the form wouldn't have any influence on the email itself.</p>
  
  <p>Thanks in advance for any help.</p>