kevinridge Posted December 28, 2007 Share Posted December 28, 2007 Hello, I am learning imap with php and trying to get it to work. I am able to login and search for a certain message if i want. I can also get message body using imap_fetchbody. Now i am confused as in how to do this: Say i have an attachment in my email. I want to be able to download that attachment from my browser using php instead of just getting the body. Is this possible? Any help would be great. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/83422-imap-basic-question/ Share on other sites More sharing options...
MadTechie Posted December 28, 2007 Share Posted December 28, 2007 your use imap_fetchbody, ie $fileContent = imap_fetchbody($msgbox,$msgno,$file+2); Quote Link to comment https://forums.phpfreaks.com/topic/83422-imap-basic-question/#findComment-424422 Share on other sites More sharing options...
kevinridge Posted December 28, 2007 Author Share Posted December 28, 2007 Thanks for the response. But will fetchbody allow me to download the attachment on my computer not the server? Quote Link to comment https://forums.phpfreaks.com/topic/83422-imap-basic-question/#findComment-424488 Share on other sites More sharing options...
MadTechie Posted December 29, 2007 Share Posted December 29, 2007 Yes, you should also see the "force download" snipplet http://www.phpfreaks.com/forums/index.php/topic,95433.0.html Quote Link to comment https://forums.phpfreaks.com/topic/83422-imap-basic-question/#findComment-424985 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.