RichardB Posted June 25, 2009 Share Posted June 25, 2009 Using either IMAP or POP3 without sending attachments everything works great. My issue is when sending a message with an attachment the recipient now opens their new message to see a Content-Type: text/plain header, then message text, then the attachment as Content-Type: text/plain Sort of like below... ======================================= Content-Type: multipart/mixed;boundary="--a6f2941161cec969833f6f424845ecf4" ----a6f2941161cec969833f6f424845ecf4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit This is the test text content of the message sent ----a6f2941161cec969833f6f424845ecf4 Content-Transfer-Encoding: base64 Content-Type: text/plain; name="TEST.txt"; charset="UTF-8" Content-Disposition: attachment; filename="TEST.txt" VEVTVA== ----a6f2941161cec969833f6f424845ecf4-- ========================================= For reference I’m using in Host = mail.mydomain.net:993 and flags imap/ssl/novalidate-cert PHP/5.2.9 IMAP c-Client Version 2004 Any ideas on how to sort this out? Richard Link to comment https://forums.phpfreaks.com/topic/163653-an-issue-with-attachments/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.