Results 1 to 3 of 3

Thread: vb6-POP3 Attachment Processing

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2003
    Location
    Sydney
    Posts
    1,123

    vb6-POP3 Attachment Processing

    last time i did a basic walkthrough of how to get email from pop3 server. this is a part where i have found a lot of people getting stuck. this code basically reads .eml file or the file downloaded by my last post and separates the attachments. this is a very crude form of the code and more work needs to be done on it. just in case somebody wants to know, i did this piece of cade back in march 2006 and cant remember most of what i did. i need to go thru it again.

    anyways, the basics first, i dont know anything about how mime works. all i did here was read boundaries and separate them.

    and here is the code, zipped.

    forgot to mention. th base64 class in the zip is downloaded from winsockvb.com, i guess.
    Attached Files Attached Files
    Last edited by mebhas; Jun 22nd, 2006 at 04:12 AM.

  2. #2
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    268

    Question Re: vb6-POP3 Attachment Processing

    Hi,

    I want to do a application which will download all the attachment from my pop3 server by using my userid and password, with the pop3 server name, I have to input the three things and it want to download my new mail attachments to my local system.

    I have downloaded your application and trying to run it, but I have no idea on the .eml file. Can you please have any updated thing with you for the same kindly send it to me,

    I need it in little bit emergency....

    Thanks in advance.....

  3. #3
    Addicted Member
    Join Date
    Apr 2009
    Location
    Toronto, Ontario
    Posts
    242

    Re: vb6-POP3 Attachment Processing

    If you take a look at the code you will see that the .eml file is opened and read into a variable called fullMsg. This leads me to believe that this file contains an individual message downloaded from the Pop3 server.

    While I admittedly know little about how Pop3 mailer clients handle the downloading of messages (have only used Outlook with Exchange most of my career, so sue me! ), I'm assuming that there is a folder on the local computer with a repository of *.eml files containing each message downloaded from the POP server. You can adapt the code to loop through all .eml files in a given directory and perform the attachment extraction.

    Hope this helps.
    -EM.
    ---
    REMEMBER: If your issue is resolved, use the Thread Tools menu to set it as such, and be sure to rate the posts that help you the most!


    Just because I was jealous of g4hsean!

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