1 Attachment(s)
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.
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.....
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! :p), 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.