[ reiser @ 20.09.2005. 19:38 ] @
Radim jedan program koji izmedju ostalog treba da ima mogucnost da salje mailove preko gmaila. Medjutim, da bi se poslao mail prvo se mora uraditi TLS handshake sa GMail serverom. Postoji li neka komponenta ili unit koji podrzavaju TLS ? Indijev IdSMTP ne podrzava... Hvala
[ Srki_82 @ 20.09.2005. 19:48 ] @
Indy podrzava TSL

For Indy 8 and 9

Indy 8 and Indy 9 do not support explicit TLS with SMTP. If the SMTP server supports implicit TLS with SMTP, you may able to use implicit TLS with SMTP by stting the TIdSMTP.IOHandler to TIdSSLIOHandlerSocket and the port to the IdPORT_ssmtp constant in IdAssignedNumbers (465).

For Indy 10

Indy 10 supports SMTP with explicit TLS. In the Indy 10's TIdSMTP, you simply have to assign a TIdSSLIOHandlerSocketBase descendent to the TIdSMTP.IOHandler property and set the UseTLS property to either utUseRequireTLS if you do not want to use an unencrypted connection or utUseExplicitTLS if you are willing to use an unencrypted connection.

Izvor: http://www.indyproject.org/KB/index.html?smtpmuststarttls.htm
[ reiser @ 20.09.2005. 20:11 ] @
OK, ali nisam uspeo da se snadjem. Moze li neki code-snippet plz ? :)
[ Srki_82 @ 20.09.2005. 20:27 ] @
Kakav kod!? :) Sve to radis u Design Time... u Object Inspectoru.

Ako koristis Indy 8 ili 9 postavis TIdSMTP i TIdSSLIOHandlerSocket na formu. TIdSMTP.IOHandler property postavis na tu TIdSSLIOHandlerSocket komponentu koju si malo pre stavio i port za TIdSMTP postavis na 465.
To je to.

Za Indy 10 je princip isti samo sto ne treba da menjas port nego UseTLS property.