Hello,
I have used a very nice ActiveX control "ChilkatMail".
It does almost everything is needed like:
- CC/BCC,
- secure server connection
- attached files
...
To implement a fraction of this on winsock will take a lot of time.
One source can be
http://www.news2news.com/vfp/?example=385Adi