How to connect to POP3 server and check mail and download attachment using VB 6.0?

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
From scratch: Windows Dev Journal has had articles on the client side of the POP3 protocol, and a google search of "RFC POP3" will turn up the the protocol definition. Use the internet transfer control or any winsock library.

Free: check www.codeproject.com to see if anyone has posted VB6 code

Paid: there are several veondors offering internet components that include mail (IP*Works, Dart, etc.)

Note on doing it yourself: if I recall correctly, attachments are not really separate files, they are MIME base64-encoded text in the main message, just like "binary" posts on usenet.
 

kmthien

Senior member
Oct 8, 2002
363
0
0
Hi, so u mean by doing it myself, I will not be able to download the attachment and save it to a folder ???
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: kmthien
Hi, so u mean by doing it myself, I will not be able to download the attachment and save it to a folder ???

If you can download the mail message you are downloading the attachment. Just remember to decode it. If this is for homework, you should drop the class, or atleast ask better questions.
 

HJB417

Senior member
Dec 31, 2000
763
0
0
Originally posted by: DaveSimmons
From scratch: Windows Dev Journal has had articles on the client side of the POP3 protocol, and a google search of "RFC POP3" will turn up the the protocol definition. Use the internet transfer control or any winsock library.

Free: check www.codeproject.com to see if anyone has posted VB6 code

Paid: there are several veondors offering internet components that include mail (IP*Works, Dart, etc.)

Note on doing it yourself: if I recall correctly, attachments are not really separate files, they are MIME base64-encoded text in the main message, just like "binary" posts on usenet.


Attachments can use other encodings too, or none. quoted-printable is a popular one.