PHP Classes

Attachment not in body, not showing in parts

Recommend this page to a friend!

      Read POP3/IMAP attachment  >  All threads  >  Attachment not in body, not showing...  >  (Un) Subscribe thread alerts  
Subject:Attachment not in body, not showing...
Summary:Attachment not in body, not showing in parts
Messages:2
Author:Ryan E
Date:2010-02-16 18:52:57
Update:2010-02-17 22:46:32
 

  1. Attachment not in body, not showing...   Reply   Report abuse  
Picture of Ryan E Ryan E - 2010-02-16 18:52:57
This code seems to check the 'parts' array to see the length. I receive an email that clearly has a small video attached, yet, when I print out the parts array, it shows 0, thus this code doesn't run. I am contacting an exchange server. In outlook, the same email just shows the video as an 'attachment' , but the video isn't in the body area of the email. Please let me know how to access these types of attachments.

  2. Re: Attachment not in body, not showing...   Reply   Report abuse  
Picture of Ryan E Ryan E - 2010-02-17 22:46:32 - In reply to message 1 from Ryan E
I found what was causing it to not work.

In the line:
$structure = imap_fetchstructure($mbox, $jk , FT_UID);

I took out the last argument FT_UID:
$structure = imap_fetchstructure($mbox, $jk );

and now it works.

I don't have a 100% explanation for it, but another script i saw didn't have this FT_UID argument, so thats why I tried taking it out. This made me lose many hours!