POP3 Client With Attachment | CodeGuru

POP3 Client With Attachment

Environment: VC6 SP5, Windows 2000 Here is a simple COM server v.1.1 that is able to receive a mail messages and extract attached files. Base64 encoding is supported only. Look at the Eucalyptus sources for more encoding. The POP3 realization was come from PJ Naughter code with some additional functions, the Base64 decoding was come […]

Written By
CodeGuru Staff
CodeGuru Staff
Feb 15, 2002
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Environment: VC6 SP5, Windows 2000

Here is a simple COM server v.1.1 that is able to receive a mail messages
and extract attached files. Base64 encoding is supported only. Look at the
Eucalyptus sources for more encoding.

The POP3 realization was come from PJ Naughter code with
some additional functions, the Base64 decoding was come from Eucalyptus. The COM server uses MFC because of CString. It is easy to avoid CString. It is easy to convert COM to class if you don’t like COM. When received, the whole message is stored in memory. This may cause some problems
with large messages. Unicode configuration is not supported.

History:

1.1
– fixed incorrect attachments handling. Some SMTP clients such as Outlook break the ‘Content-Disposition’ line into two parts. The program incorrectly processed attached files in this case.

Thanks PJ Naughter for the POP3 realization.
Thanks Paul A. Schifferer for the
Eucalyptus – an advanced MIME-aware email application.
Thanks Zoroto for the comment about incorrect attachments handling.

Downloads

Download demo project – 88 Kb

Download source – 49 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.