473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 6893
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Thomas Williams | last post by:
When I use this line jpg attachment, come out darker that it's suppose to be. filelne = filelne + base64.decodestring(line) Tom Williams
1
by: Mad Scientist Jr | last post by:
I am writing a simple POP email reader in asp.net (vb.net) - I have the entire message read into a string variable. Can someone explain how to parse the message and save any MIME attachments out to...
6
by: ErwinF | last post by:
Hi there, I would like to know the following: How to send send email attachments using WebDAV in VB .NET? Sample code please................... Thanks for your help.
2
by: Joe George | last post by:
Hi there, How to save email attachments, from exchange, using WebDAV in C#.NET? Sample code please................... Thanks for your help. -- Joe George
2
by: David Veeneman | last post by:
My web app creates several temporary files, then attaches them to an email that it sends out. When the app attches the documents to the email, .NET locks the files. My problem is that they aren't...
0
by: jackiewkc | last post by:
Hi, Does anyone know how to use VB to write a simple MAPI to save email attachments from a specified email address to my hard drive? What I basically want is that everytime when I receive an...
1
by: shil | last post by:
Is there any possible way to create an email attachments from an URL in windows vb.net application? I'm using frame work 2.0, System.Net.Mail component. If I attach a file from my file system,...
0
by: =?Utf-8?B?amVhbm9mbWlubmVhcG9saXM=?= | last post by:
I am having problems opening email attachments when I receive as a Notepad. I have this problem in AOL or Outlook. When I open I get a box with letters, symbols and numbers. I have been told as...
1
by: rottmanj | last post by:
So after a few hours of playing with my config file, I think I have it to a point where I am ready to start adding in the rest of the components to my perl application. One thing that I know I need...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.