curl-library
RE: SMTP functionality with authentication fails!
Date: Tue, 4 Dec 2012 11:02:32 +0100 (CET)
On Tue, 4 Dec 2012, Chandran, Naveen wrote:
> 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
> on my machine, curl -V gives:
> 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
... and you're _sure_ you don't happen to have two separate installations? It
not finding smtps as a supported protocol is very suspicious and strange if
you indeed do have it supported.
> I tried the code with CURLOPT_USE_SSL
>> 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:<xxx_at_gmail.com>
> < 530 5.7.0 Must issue a STARTTLS command first. s1sm118599anj.1
Can you set a break-point in smtp_state_ehlo_resp() and figure out what's
happening? As you can see there, it is supposed to send STARTTLS there if
you've asked for it and it isn't already in use.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-12-04