Jump to content

Php -> Imap Fucntions


Recommended Posts

I was messing with the php imap functions just for fun today..and i was wondering if there was a way to access the attachments on the emails. I didn't see a function that was capabable of doing this. Does anyone know of one? Also, whats the most efficient way to list all emails in the inbox... imap_headers works fine but not sure if that was the most efficient. You know, w/o downloading the message...just the subject and from headers.


Thanks for any help,


Link to comment
Share on other sites

Hi Dave.


I believe imap_headers only returns the headers, not the actual message contents.


As for the attachments, I don't think there is such a function. You'll probably have to download the whole message and process it yourself.


I do know there is an IMAP PEAR package that may be able to handle attachments. You may want to take a look at it.


Other than that, this Google search about PHP+IMAP+attachment may have some interesting results :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...