473,327 Members | 1,979 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,327 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 8168
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: PeterR | last post by:
I've spent weeks trying to write a function that is simple to use for sending emails with attachments, but I my programming skills are not that advanced. I've noticed a few postings in these...
3
by: Selen | last post by:
I would like to be able to extract a BLOB from the database (SqlServer) and pass it to a browser without writing it to a file. (The BLOB's are word doc's, MS project doc's, and Excel spreadsheets....
14
by: Vibhu Bansal | last post by:
Hello, I am having certain problems in trying to use the function createDocumentFromUrl in VB.NET but get this error.."Object reference not set to an instance of object". Here is the code that I...
1
by: theWizard1 | last post by:
The following sends my email, but the attachment is empty. The attachment should contain the data that is in the string that was created from the xmlReader. I have a stored procedure written...
9
by: chrisspencer02 | last post by:
I am looking for a method to extract the links embedded within the Javascript in a web page: an ActiveX component, or example code in C++/Pascal/etc. I am looking for a general solution, not one...
3
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi There, I use follow code to send email inside VB.NET 2005. It does not work well. Error message of "Failure sending email" would occue. However, email was sent out sometimes. I am confused...
7
by: erikcw | last post by:
Hi all, I'm trying to extract zip file (containing an xml file) from an email so I can process it. But I'm running up against some brick walls. I've been googling and reading all afternoon, and...
0
by: suis | last post by:
Hi Everybody, I have a big dought about, how to read meta data information in a specific file type like .MSG , anyway thanks to this URL bellow . Edanmo has done a great job for that. ...
3
by: sbettadpur | last post by:
hello I designed a web application using php and mysql for this i need to extract mail attachment from outlook express (specifically .doc files) for this is there any API's or any class or any...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.