Take a look at this sample code
NetManager V1.1. There are SMTP and POP classes included that are used to send/receive email with attachments. As far as i remember, you should make them work by yourself. But this is a good point to start learning email programming (C++/MFC).
Sergey Chepurin.