title: Add attachments to Sent Items using imap function
body: <p>I use the imap php functions for smtp mailbox. When I send mail with multiple attachments, any file using <code>imap_mail()</code> function will be  properly sent with all attachments.
  But my view it in my Sent Items box, all mail text shows, but the attachment file shows up as a text file - not as a actual file.</p>
  
  <p>I use the same header code for the <code>sent imap_mail()</code> function and <code>imap_append()</code> function. Why is this unexpected behavior happening?</p>