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.