471,581 Members | 2,303 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,581 software developers and data experts.

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 8066
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 XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.