Just to add more details, here are the replies that my code prints out, when trying to connect to smtp.gmail.com:587
*220 mx.google.com ESMTP x3sm39000551eep.17 - gsmtp //////////////////////////EHLO////////////////////////// 250-mx.google.com at your service, [80.149.109.201] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250 CHUNKING //////////////////////////STARTTLS////////////////////////// 220 2.0.0 Ready to start TLS ///////////////creating TLS Session///////////////////// SSL_connect failed* -- View this message in context: http://openssl.6102.n7.nabble.com/SSMTP-Client-SSL-routines-SSL23-GET-SERVER-HELLO-tp48871p49061.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org