Can you please recommend me an approach and some of your libraries. I am going to develop Win32 program for Win7 that should connect to gmail.com and send files as attachments so i need SMTP with TLS support library. I've already managed with the base64 encoding so now i need to develop the connection part.
You would use the Chilkat Email library/component. I'm assuming you're developing in C++? In that case you would download from here:
Examples are located here:
Reference documentation here:
(see the documentation for CkMailMan)
See those (c++) examples: http://www.example-code.com/vcpp/gmail_smtp_465.asp and http://www.example-code.com/vcpp/gmail_smtp_587.asp