Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 3 odgovora
  • 2.561 pregleda

Najnovija ↓

Treba mi neka komponenta/unit koji podrzava TLS 20.09.2005. u 20:38 · pre 257 meseci #1
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
Re: Treba mi neka komponenta/unit koji podrzava TLS 20.09.2005. u 20:48 · pre 257 meseci #2
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
Potpis
Play Store
Re: Treba mi neka komponenta/unit koji podrzava TLS 20.09.2005. u 21:27 · pre 257 meseci #4
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.
Potpis
Play Store
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme