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 Quote 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. Quote 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! Quote Link to comment https://forums.phpfreaks.com/topic/259899-email-attachments-through-php/#findComment-1332102 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.