Archived Forum Post

Index of archived forum posts

Question:

SMTP w/ TLS support to Connect to GMail?

Sep 20 '12 at 10:25

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.


Answer

You would use the Chilkat Email library/component. I'm assuming you're developing in C++? In that case you would download from here:
http://www.chilkatsoft.com/downloads_vcpp.asp

Examples are located here:
http://www.example-code.com/vcpp/smtp.asp

Reference documentation here:
http://www.chilkatsoft.com/refdoc/cpp.asp

(see the documentation for CkMailMan)


Answer

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