Re: TIdSMTP and TLS

Giganews Newsgroups
Subject: Re: TIdSMTP and TLS
Posted by:  Remy Lebeau \(Indy Team\) (re…@lebeausoftware.org)
Date: Fri, 30 Jul 2010

"Arch" <archie.campbe…@ed.ac.uk> wrote in message
news:3D1B4294B1B8E340archie.campbe…@ed.ac.uk...

> When it tries to connect it gets an error message "must
> issue a STARTTLS command first".

Which version of Indy are you using?

In Indy 9 and earlier, TIdSMTP does not natively support STARTTLS (you would
have to send the STARTTLS command manually via TIdSMTP.SendCmd()).

In Indy 10, you can attach an SSL-enabled IOHandler, such as
TIdSSLIOHandlerOpenSSL, to the TIdSMTP.IOHandler property, configure it as
needed, and then set the TIdSMTP.UseTLS property to utUseExplicitTLS.

--
Remy Lebeau (TeamB)

Replies

None

In response to

TIdSMTP and TLS posted by Arch on Fri, 30 Jul 2010