Article View: borland.public.cppbuilder.internet.socket
Article #3512Re: How to connect to a SMTP server using SSL.
From: Jayme Jeffman Filho
Date: Fri, 09 Sep 2005 22:39
Date: Fri, 09 Sep 2005 22:39
38 lines
2214 bytes
2214 bytes
Hi Remy,
As far as I know Indy 10 do not work with C++Builder6.0 , am I right ?
TIA
Jayme.
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escreveu na mensagem
news:43220356$1@newsgroups.borland.com...
>
> "Jayme Jeffman Filho" <jaymenosp@jeffman.eng.br> wrote in message
> news:4321e6dd@newsgroups.borland.com...
>
> > I put the code bellow in the IdSMTP::OnConnected event hendler :
>
> Do NOT send any SMTP commands in the OnConnected event hander.
> TIdSMTP::Connect() performs various commands after connecting to the
server,
> namely processing the server's Greeting text and then requesting the
> server's capabilities. However, the OnConnected event is triggered before
> that processing occurs. If you send your own commands from inside the
> OnConnected event, you will corrupt the conversation that TIdSMTP has with
> the server. You must wait until Connect() fully exits before doing
> anything.
>
> > SMTP->SendCmd("STARTTLS", 220); // jjf Applications hungs here
> > SSLHandler->PassThrough = false;
> > SMTP->Authenticate();
>
> I suggest you upgrade to Indy 10. TIdSMTP in Indy 10 has native support
for
> the STARTTLS command.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<43220ef4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4321e6dd@newsgroups.borland.com> <43220356$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6591514d1530cd5c X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jayme Jeffman Filho" <jaymenosp@jeffman.eng.br> Newsgroups: borland.public.cppbuilder.internet.socket References: <4321e6dd@newsgroups.borland.com> <43220356$1@newsgroups.borland.com> Subject: Re: How to connect to a SMTP server using SSL. Date: Fri, 9 Sep 2005 19:39:47 -0300 Lines: 40 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 200.213.44.3 Message-ID: <43220ef4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126305524 200.213.44.3 (9 Sep 2005 15:38:44 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail