LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2006, 08:14 AM   #1
benjalien
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

Rep: Reputation: 15
Get/open email attachment using PHP


Hi everyone,

I'm trying to get/open a file attached to a mail using php.
I'm able to get the mail and detect that there's a file attached, but how to get the attachment?
By now I can "see" it, but I would like to extract it cleanly from the mail's body.

Any help would be grearly appreciated!
 
Old 09-06-2006, 09:25 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

Pear has a class for that, check out PEAR's Mail_mimeDecode.

http://pear.php.net/ for information.
 
Old 09-07-2006, 04:21 AM   #3
benjalien
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (i686/ppc/amd64)
Posts: 86

Original Poster
Rep: Reputation: 15
Talking Thanks!

Thanks! It looks like what I'm looking for

I think we can mark this thread as solved...

Thanks really much!
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
email attachment lhrt Linux - Networking 3 05-31-2006 05:13 AM
bash: email file as attachment mikeshn Programming 5 11-08-2004 10:17 PM
account and email attachment limit red_phoenix Debian 2 09-16-2003 03:22 AM
cannot receive email with attachment charles168 Linux - Software 2 09-06-2003 09:43 AM
Is it safe to open a .scr attachment in an email? BajaNick General 10 09-04-2003 10:04 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration