cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

smtp with ssl

From: Alona Rossen <arossen_at_opentext.com>
Date: Thu, 14 Oct 2010 17:45:05 -0400

Hi All:

 

I am trying to send an email via gmail using cURL command line. I am
certain that my usr:pwd are correct.

 

Please advise where I go wrong:

 

 

/usr/local/curl72/bin> curl
smtp://myemail%40gmail.com:MyPwd12345_at_smtp.gmail.com:587 -v --mail-from
MyAccount_at_gmail.com -mail-rcpt MyAccount_at_opentext.com -ssl-reqd -k>

* About to connect() to smtp.gmail.com port 587 (#0)

* Trying 74.125.95.109... connected

* Connected to smtp.gmail.com (74.125.95.109) port 587 (#0)

< 220 mx.google.com ESMTP in12sm12072832ibb.9

> EHLO geniosol9

< 250-mx.google.com at your service, [199.85.101.2]

< 250-SIZE 35651584

< 250-8BITMIME

< 250-STARTTLS

< 250-ENHANCEDSTATUSCODES

< 250 PIPELINING

> STARTTLS

< 220 2.0.0 Ready to start TLS

* SSLv3, TLS handshake, Client hello (1):

* SSLv3, TLS handshake, Server hello (2):

* SSLv3, TLS handshake, CERT (11):

* SSLv3, TLS handshake, Server finished (14):

* SSLv3, TLS handshake, Client key exchange (16):

* SSLv3, TLS change cipher, Client hello (1):

* SSLv3, TLS handshake, Finished (20):

* SSLv3, TLS change cipher, Client hello (1):

* SSLv3, TLS handshake, Finished (20):

* SSL connection using RC4-MD5

* Server certificate:

* subject: C=US; ST=California; L=Mountain View; O=Google Inc;
CN=smtp.gmail.com

* start date: 2010-04-22 20:02:45 GMT

* expire date: 2011-04-22 20:12:45 GMT

* common name: smtp.gmail.com (matched)

* issuer: C=US; O=Google Inc; CN=Google Internet Authority

* SSL certificate verify result: unable to get local issuer
certificate (20), continuing anyway.

> EHLO geniosol9

< 250-mx.google.com at your service, [199.85.101.2]

< 250-SIZE 35651584

< 250-8BITMIME

< 250-AUTH LOGIN PLAIN XOAUTH

< 250-ENHANCEDSTATUSCODES

< 250 PIPELINING

> AUTH PLAIN
YWxvbmEucm9zc2VuQGdtYWlsLmNvbQBhbG9uYS5yb3NzZW5AZ21haWwuY29tAHo0bWtDNzI0

< 235 2.7.0 Accepted

> MAIL FROM:alona.rossen_at_gmail.com

< 555 5.5.2 Syntax error. in12sm12072832ibb.9

* Access denied: 555

> QUIT

< 221 2.0.0 closing connection in12sm12072832ibb.9

* Closing connection #0

* SSLv3, TLS alert, Client hello (1):

curl: (67) Access denied: 555

/usr/local/curl72/bin>

 

I have got the same error when I tried to SMTP via gmail using libcurl.

 

BTW, if I specify protocol as smtps:// I receive "Unlnown Protocol"
error:

error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol

 

Thanks,

Alona

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-14

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET