By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,795 Members | 1,242 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,795 IT Pros & Developers. It's quick & easy.

Using PHP to extract email attachment

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.