Connecting Tech Pros Worldwide Help | Site Map

reading and decoding email attachments

 
LinkBack Thread Tools Search this Thread
  #1  
Old April 10th, 2007, 04:25 PM
olafmol
Guest
 
Posts: n/a
Default 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


  #2  
Old April 10th, 2007, 08:05 PM
Toby A Inkster
Guest
 
Posts: n/a
Default Re: reading and decoding email attachments

olafmol wrote:
Quote:
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!
  #3  
Old April 11th, 2007, 06:45 PM
Aerik
Guest
 
Posts: n/a
Default Re: reading and decoding email attachments

On Apr 10, 12:59 pm, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
Quote:
olafmol wrote:
Quote:
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

  #4  
Old April 12th, 2007, 04:25 AM
Manuel Lemos
Guest
 
Posts: n/a
Default Re: reading and decoding email attachments

Hello,

on 04/11/2007 03:42 PM Aerik said the following:
Quote:
Quote:
Quote:
>>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/
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.