POP3 Client With Attachment

WEBINAR: On-demand webcast

How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >

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


Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • As all sorts of data becomes available for storage, analysis and retrieval - so called 'Big Data' - there are potentially huge benefits, but equally huge challenges...
  • The agile organization needs knowledge to act on, quickly and effectively. Though many organizations are clamouring for "Big Data", not nearly as many know what to do with it...
  • Cloud-based integration solutions can be confusing. Adding to the confusion are the multiple ways IT departments can deliver such integration...

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date