brianlange Posted July 30, 2009 Share Posted July 30, 2009 I have a script that retrieves emails and insert them into a database. How do I go about saving attachments and uploading them to the server. Thanks in advance. -Brian Link to comment https://forums.phpfreaks.com/topic/168217-retrieving-email-with-attachment/ Share on other sites More sharing options...
zq29 Posted July 31, 2009 Share Posted July 31, 2009 How are you retrieving the emails? If you're using the IMAP functions, you could extract the attachment from the body using something like imap_fetchbody or imap_savebody. Link to comment https://forums.phpfreaks.com/topic/168217-retrieving-email-with-attachment/#findComment-887511 Share on other sites More sharing options...
brianlange Posted December 11, 2009 Author Share Posted December 11, 2009 I am using the Zend Framework Imap library. I was able to get it working. Thanks, -Brian Link to comment https://forums.phpfreaks.com/topic/168217-retrieving-email-with-attachment/#findComment-975676 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.