cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: SMTP SSL does not start, no authentication (was empty subject)

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Tue, 19 Oct 2010 17:12:34 +0200

 
Alona Rossen wrote:

> * About to connect() to smtp.gmail.com port 587 (#0)
> * Trying 74.125.65.109... * connected
> * Connected to smtp.gmail.com (74.125.65.109) port 587 (#0)
> < 220 mx.google.com ESMTP x42sm11638030yhc.1
> > EHLO geniosol9
> < 250-mx.google.com at your service, [199.85.101.2]
> < 250-SIZE 35651584
> < 250-8BITMIME
> < 250-STARTTLS
> < 250-ENHANCEDSTATUSCODES
> < 250 PIPELINING
> > QUIT
> < 221 2.0.0 closing connection x42sm11638030yhc.1
> * Closing connection #0
* Login denied

1) The SSL did not start: you probably have to curl_easy_setopt(curl,
CURLOPT_USE_SSL, CURLUSESSL_ALL)

2) The clear EHLO answer does not propose any authentication mechanism:
libcurl can then not attempt authentication. The SSL-encrypted
subsequent EHLO answer will probably offer some authentication
mechanism, thus this will eventually be OK if you fix 1).

3) Not related to your current problem: add a curl_global_cleanup() call
when returning -1 (after the if {} block).
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-19