woolyg Posted March 28, 2012 Share Posted March 28, 2012 Hi all, Does anyone know how to extract attachments from an email that has more than one attachment associated with it? Getting the overall attachment data works fine using <?php $attachment_data = imap_fetchbody($inbox,$email_number,2); ?> ..but breaking up that data into its component attachments is eluding me, and I can't find anything on the PHP doco that enabled me to do it. All info appreciated, WoolyG Link to comment https://forums.phpfreaks.com/topic/259899-email-attachments-through-php/ Share on other sites More sharing options...
rythemton Posted March 28, 2012 Share Posted March 28, 2012 Check out my reply to http://www.phpfreaks.com/forums/index.php?topic=353529.0 The code I put in there is long, so I'm not going to post it twice. I created it 2 years ago, but it still works. Link to comment https://forums.phpfreaks.com/topic/259899-email-attachments-through-php/#findComment-1332099 Share on other sites More sharing options...
woolyg Posted March 28, 2012 Author Share Posted March 28, 2012 Thanks rythemton! Link to comment https://forums.phpfreaks.com/topic/259899-email-attachments-through-php/#findComment-1332102 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.