cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [patch] possible SMTP example

From: Brad Hards <bradh_at_frogmouth.net>
Date: Thu, 16 Dec 2010 20:52:30 +1100

On Thursday, December 16, 2010 08:15:42 pm David Woodhouse wrote:
> Looks much better; thanks. One more nitpick...
>
> On Thu, 2010-12-16 at 18:15 +1100, Brad Hards wrote:
> > + /* this is the URL for your mailserver - you can also use an
> > smtps:// URL + * here */
>
> There's no such thing as smtps://. There was a rash of people doing a
> non-standard thing on port 465 a few years ago,
I'm going to argue this.

Port 465 is what libcurl implements as smtps://. I agree that it isn't
standardised, but saying "no such thing" is equivalent to arguing that there
is no such thing as SSLv3.

> but the standard way to
> do it is to connect in the clear, issue the STARTTLS command, and then
> upgrade to TLS.
 
> Giving an example of how you do *that* would be a more useful thing to
> do in a comment. Bonus points for mentioning that you would hopefully
> expect this to be connecting to port 587 rather than port 25 (RFC4409).
I'll take a look. I think this could be better placed in a separate example
though.

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