468,539 Members | 1,614 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

reading and decoding email attachments

Hello,

i want to write a PHP4 script that reads POP3 or IMAP mail and can
decode the possible attachments in the email. I've looked around for
some classes to do this, and found a few, but most of them seem to be
very lowlevel or lacking in functionality. Is there a good script,
class or example for decoding email attachments?
I have used a class called attachmentread, but this class expects an
attachment as disposition: attachment, while my email with attachments
are all inline... any ideas?

Olaf

Apr 10 '07 #1
3 6656
olafmol wrote:
i want to write a PHP4 script that reads POP3 or IMAP mail and can
decode the possible attachments in the email.
http://www.php.net/imap

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!
Apr 10 '07 #2
On Apr 10, 12:59 pm, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
olafmol wrote:
i want to write a PHP4 script that reads POP3 or IMAP mail and can
decode the possible attachments in the email.

http://www.php.net/imap
Yeah, but in my (limited!) experience, the IMAP library installed.
I've just finished writing a function to parse a raw message returned
from a basic POP3 class to an array so I can mangle it because I want
an application people without IMAP can use.

OTOH, Olaf, it doesn't seem like it'd be that hard to change the class
to accept inline attachements. But maybe not; I'm pretty new to
mangling email.

Aerik

Apr 11 '07 #3
Hello,

on 04/11/2007 03:42 PM Aerik said the following:
>>i want to write a PHP4 script that reads POP3 or IMAP mail and can
decode the possible attachments in the email.
http://www.php.net/imap

Yeah, but in my (limited!) experience, the IMAP library installed.
I've just finished writing a function to parse a raw message returned
from a basic POP3 class to an array so I can mangle it because I want
an application people without IMAP can use.

OTOH, Olaf, it doesn't seem like it'd be that hard to change the class
to accept inline attachements. But maybe not; I'm pretty new to
mangling email.
Did you try this MIME parser class? It supports any type of message
structure including attachments:

http://www.phpclasses.org/mimeparser
--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Apr 12 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Thomas Williams | last post: by
1 post views Thread by Mad Scientist Jr | last post: by
2 posts views Thread by David Veeneman | last post: by
reply views Thread by =?Utf-8?B?amVhbm9mbWlubmVhcG9saXM=?= | last post: by
1 post views Thread by rottmanj | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.