cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SMTP functionality with authentication fails!

From: Chandran, Naveen <naveen.chandran_at_hp.com>
Date: Sat, 1 Dec 2012 12:14:38 +0000

Hi Steve, Daniel,

>> I'm not familiar with the CURLOPT_HTTPPROXYTUNNEL option at all
> It makes libcurl do a CONNECT through a proxy to the target server+port and then work as normal. The think to note is that hardly any proxies setup by organizations and companies out there allow CONNECT to other > ports than 443 and possibly a few others. Quite likely this is what made Naveen's program fail...

Please note: with the CURLOPT_HTTPPROXYTUNNEL option still in place, I am able to succeed with the curl_easy_perform anyway (and even send a mail),
for the case where I do not use the gmail or other external mail servers.

However, when I connect to an external mail server (such as gmail), I get the following logs:

* About to connect() to smtp.gmail.com port 465 (#0)
* Trying 173.194.68.108... * Connection refused
* Trying 173.194.68.109... * Connection refused
* Trying 2607:f8b0:400d:c00::6c... * Failed to connect to 2607:f8b0:400d:c00::6c: Network is unreachable
* Success
* couldn't connect to host
* Closing connection #0
* Couldn't connect to server

As for the libcurl version, I am using v7.28.1.

Thanks,
Naveen

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-12-01