|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
> 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)
TIdSMTP and TLS posted by Arch on Fri, 30 Jul 2010