469,133 Members | 1,281 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

Using PHP to extract email attachment

Hi...

I'm interested in using PHP to extract attachments from a standard unix
..mbox file...anybody done this or have a link to resources that might
help? There is plenty on sending mail, but not much on
reading/processing mail with php...

Thx!
matt

Jul 17 '05 #1
3 7926
On 2004-12-29, matt roberts <ma*********@gmail.com> wrote:
Hi...

I'm interested in using PHP to extract attachments from a standard unix
.mbox file...anybody done this or have a link to resources that might
help? There is plenty on sending mail, but not much on
reading/processing mail with php...


http://www.php.net/imap and the imap_fetchstructure function is a good
place to start :)
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Jul 17 '05 #2
matt roberts <ma*********@gmail.com> wrote:
I'm interested in using PHP to extract attachments from a standard unix
.mbox file...anybody done this or have a link to resources that might
help? There is plenty on sending mail, but not much on
reading/processing mail with php...


What have you searched for then? Searching for mbox and php came up with
a pear class called Mail_Mbox for reading mbox files. You'll just need
to parse the data, which can again be done with another pear class:
Mail_Mime. Alternatively you could use the imap/pop3 extensions if
applicable.

Jul 17 '05 #3
But what about syntax to open local mbox file ? PHP imap_open is
intended to do that but... HOW ?

Tim Van Wassenhove wrote:
On 2004-12-29, matt roberts <ma*********@gmail.com> wrote:
Hi...

I'm interested in using PHP to extract attachments from a standard unix
.mbox file...anybody done this or have a link to resources that might
help? There is plenty on sending mail, but not much on
reading/processing mail with php...

http://www.php.net/imap and the imap_fetchstructure function is a good
place to start :)

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by PeterR | last post: by
3 posts views Thread by Selen | last post: by
1 post views Thread by theWizard1 | last post: by
9 posts views Thread by chrisspencer02 | last post: by
3 posts views Thread by =?Utf-8?B?SHVnaA==?= | last post: by
7 posts views Thread by erikcw | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.