Hi Steve, Daniel, > Additionally, rather than try a TLS upgraded connection have you tried using > smtps:// to see if that works? Here libcurl should try and create an SSL > connection using port 465 - again I don't know if this works through > a proxy.
With smtps:// substituted there-in (and using ports 587/465), the code when run complains thus: * Protocol smtps not supported or disabled in libcurl * Unsupported protocol However, please note that curl-config --feature tells me: SSL IPv6 libz IDN NTLM NTLM_WB and on my machine, curl -V gives: curl 7.28.1 (i686-pc-linux-gnu) libcurl/7.28.1 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz I believe it is safe to assume I've been using curl built with SSL support and that the version I am using (v7.28.1) supports smtps too. Also, to your question as to whether I tried the code with CURLOPT_USE_SSL in place: yes, and on doing so, I get the following: * About to connect() to proxy xxxxxxxxxx port 8080 (#0) * Trying xx.xxx.xxx.xx... * connected * Connected to xxxxxxxxxx (xx.xxx.xxx.xx) (xx.xxx.xxx.xx) port 8080 (#0) * Establish HTTP proxy tunnel to smtp.gmail.com:587 > CONNECT smtp.gmail.com:587 HTTP/1.1 Host: smtp.gmail.com:587 Proxy-Connection: Keep-Alive < HTTP/1.1 200 Connection established < * Proxy replied OK to CONNECT request < 220 mx.google.com ESMTP s1sm118599anj.1 > EHLO xxxxxxxxx < 250-mx.google.com at your service, [15.211.201.86] < 250-SIZE 35882577 < 250-8BITMIME < 250-STARTTLS < 250-ENHANCEDSTATUSCODES < 250 PIPELINING > MAIL FROM:<[email protected]> < 530 5.7.0 Must issue a STARTTLS command first. s1sm118599anj.1 * Access denied: 530 > QUIT < 221 2.0.0 closing connection s1sm118599anj.1 * Closing connection #0 * Login denied Apologies if I've still missed out on anything very obvious (that should've been, to get it to work!). Thanks for your patience again. Thanks, Naveen ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
