title: PHP Mailer - Attachments not sending properly
body: <p>When I send a message with a string attachment, the string attachment when opened only gives a 1 and in the email sorce it says </p>
  
  <pre><code>--b1_5a1a74831dfa0ce86353d222b95078c6
  Content-Type: text/html; name="apperley-invoice-20017.html"
  Content-Transfer-Encoding: base64
  Content-Disposition: attachment; filename="apperley-invoice-20017.html"
  
  MQ==
  
  
  --b1_5a1a74831dfa0ce86353d222b95078c6--
  </code></pre>
  
  <p>Im using this code to add the attachment:</p>
  
  <pre><code>$mail-&gt;AddStringAttachment($invoicehtml,$filename,'base64','text/html');
  </code></pre>