Ok, first comes the "Thanx" to all the guys volunteering their time and code to make everybody's life a bit easier. Some comments on the POP3 class and the SMTP. I found the implementation of Wes Clyburn very good and it could serve as the basis for a nice Send and Receive application. Also a "Danke" to Michael Krebs, it was very useful and saved me lots of time. Now to the limitations that I had to overcome:
Unicode support. (Important to me but irrelevant to some)
Extraction of files from MIME messages after downloading.(This seems like a biggy!!!)
Extra Encoding and decoding algorythms.
There is a problem that the comparing of strings is case insensitive in MIME, so that is fixed.
The Unicode support was added quite easily. It required some changes in the get_response and all the parameters for Send had to be converted:
Please ensure that you include the <atlbase.h> header in the CPP.
Extracting files is a bit harder and required more changes. I am still working on some of the code, but I can extract any file that is base64 endcoded or quoted-printable. If you need some help, drop me a line. The code is not neat and tidy yet but it may serve as a starting point.
Lawrence P. Reid
International Bureau of the Universal Postal Union
3000 Bern 15
Tel: +41 31 350 3541
Fax: +41 31 352 4323
This E-mail message reflects only the opinions of the author and is
in no way binding upon his or her employer.
Ce courrier ne refl�te que l'avis de l'auteur et
ne saurait engager la soci�t� pour laquelle il travaille.
There is a bug in DevStudio's ATL App Wizard which sets the release builds to be a console app.
Go to project settings for the release build. On the C/C++ tab make sure that _ATL_MIN_CRT is not defined.
This causes it to link as if it were a console app, which means main() has to be defined. Just remove the
symbol and it should be just fine.
Your work is very nice. Thanks for the code. I want to know one thing, is it possible to send and recieve
attachments(files) also. or we have to go for MAPI, I am very much new to socket programming. so pl. help me