Results 1 to 7 of 7

Thread: eMail Attachment - Help Needed

  1. #1

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    eMail Attachment - Help Needed

    can anyone pls show me how to extract an attachment from an email message.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  2. #2
    New Member
    Join Date
    Aug 2006
    Posts
    3

    Re: eMail Attachment - Help Needed

    lets see that you atleast tried it yourself, what have you got and we'll help you fix it.

  3. #3

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    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.
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  4. #4
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    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?

  5. #5

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: eMail Attachment - Help Needed

    thanks john
    Quote 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
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  7. #7

    Thread Starter
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    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).
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width