Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Treba mi neka komponenta/unit koji podrzava TLS

[es] :: Pascal / Delphi / Kylix :: Treba mi neka komponenta/unit koji podrzava TLS

[ Pregleda: 1990 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

reiser

Član broj: 7895
Poruke: 2314



+102 Profil

icon Treba mi neka komponenta/unit koji podrzava TLS20.09.2005. u 19:38 - pre 226 meseci
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
 
Odgovor na temu

Srki_82
Srdjan Tot
Me @ My Home
Ljubljana

Član broj: 28226
Poruke: 1403
82.208.201.*

ICQ: 246436949


+10 Profil

icon Re: Treba mi neka komponenta/unit koji podrzava TLS20.09.2005. u 19:48 - pre 226 meseci
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
 
Odgovor na temu

reiser

Član broj: 7895
Poruke: 2314



+102 Profil

icon Re: Treba mi neka komponenta/unit koji podrzava TLS20.09.2005. u 20:11 - pre 226 meseci
OK, ali nisam uspeo da se snadjem. Moze li neki code-snippet plz ? :)
 
Odgovor na temu

Srki_82
Srdjan Tot
Me @ My Home
Ljubljana

Član broj: 28226
Poruke: 1403
82.208.201.*

ICQ: 246436949


+10 Profil

icon Re: Treba mi neka komponenta/unit koji podrzava TLS20.09.2005. u 20:27 - pre 226 meseci
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.
 
Odgovor na temu

[es] :: Pascal / Delphi / Kylix :: Treba mi neka komponenta/unit koji podrzava TLS

[ Pregleda: 1990 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.