|
-
Aug 5th, 2006, 05:12 PM
#1
Thread Starter
Fanatic Member
eMail Attachment - Help Needed
can anyone pls show me how to extract an attachment from an email message.
-
Aug 5th, 2006, 05:30 PM
#2
New Member
Re: eMail Attachment - Help Needed
lets see that you atleast tried it yourself, what have you got and we'll help you fix it.
-
Aug 5th, 2006, 05:40 PM
#3
Thread Starter
Fanatic Member
Re: eMail Attachment - Help Needed
welcome to the forums Kesmai
back to your response...i needed some professional help on how to do that(that's why i posted my problem).
because i don't know how to do it.
-
Aug 6th, 2006, 02:29 PM
#4
<?="Moderator"?>
Re: eMail Attachment - Help Needed
The e-mail is split up using content bondaries, extract the boundary information from the header and then split the message up using that. Do you know how e-mail messages are formatted?
-
Aug 6th, 2006, 05:16 PM
#5
Thread Starter
Fanatic Member
Re: eMail Attachment - Help Needed
thanks john
 Originally Posted by john tindell
Do you know how e-mail messages are formatted?
not at all
and also i can see the boundaries but how do i use it to split them
-
Aug 7th, 2006, 10:19 AM
#6
Re: eMail Attachment - Help Needed
http://en.wikipedia.org/wiki/MIME
At the bottom there are also lots of useful links.
As for processing the message, you need to do string processing with PHP.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 9th, 2006, 07:14 AM
#7
Thread Starter
Fanatic Member
Re: eMail Attachment - Help Needed
yeah i've read that before and i'm still trying to figure out what to do with the info on that page.
ok now, i think i've gotten to a part where i've been able to differentiate the message body from the attachment(its working fine) and also i've been able to decode the attachments(using base64_decode) and whats bothering me now is that, it'll only decode 2 of 4 attachments(i.e 1 .gif file, 1 .png file, 1 .rtf file and 1 .zip archive respectively).
so in a nutshell, it only decoded the .GIF and .PNG correctly while the 2 others where decoded badly(or wrongly).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|