curl-library
error when send email via curl
Date: Wed, 7 Nov 2012 12:15:22 +0800 (CST)
hello:
when i send email through gmail is ok, but through mail.live failed.
gmail:
curl -n --ssl-reqd --mail-from "wang37921_at_gmail.com" --mail-rcpt "wang37921_at_live.com" --url smtp://smtp.gmail.com:465 -u wang37921_at_gmail.com -v --cacert cacert.pem
it works.
but send through live.mail, there has some errors.
curl -n --ssl-reqd --mail-from "wang37921_at_live.com" --mail-rcpt "wang37921_at_gmail.com" --url smtp://smtp.live.com:587 -u wang37921_at_live.com -v --cacert cacert.pem
verbose:
* About to connect() to smtp.live.com port 587 (#0)
* Trying 65.55.96.11...
* connected
* Connected to smtp.live.com (65.55.96.11) port 587 (#0)
* successfully set certificate verify locations:
* CAfile: cacert.pem
CApath: none
* SSLv3, TLS handshake, Client hello (1):
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
> QUIT
< 0-SMTP410.blu0.hotmail.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.467
5 ready at Tue, 6 Nov 2012 20:04:52 -0800
< 530 5.7.0 Must issue a STARTTLS command first
* Closing connection #0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
features:
curl 7.28.0 (i386-pc-win32) libcurl/7.28.0 OpenSSL/1.0.1c WinIDN
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp
smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SPNEGO SSL SSPI
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-11-07