Article View: borland.public.cppbuilder.internet.socket
Article #3510How to connect to a SMTP server using SSL.
From: Jayme Jeffman Filho
Date: Fri, 09 Sep 2005 19:48
Date: Fri, 09 Sep 2005 19:48
26 lines
1777 bytes
1777 bytes
Hi,
I've installed Indy 9.0.18 on my C++Builder Professional edition IDE.
I've got some old information (2002 - 2004) on the Internet about
using the TIdSMTP to connect to the Gmail SMTP server which
requires SSL authentication.
I put the code bellow in the IdSMTP::OnConnected event hendler :
[code]
void __fastcall TForm1::SMTPConnected(TObject *Sender)
{
SMTP->SendCmd("STARTTLS", 220); // jjf Applications hungs here
SSLHandler->PassThrough = false;
SMTP->Authenticate();
}
[/code]
If I comment the line {SMTP->SendCmd("STARTTLS", 220); } the application
execute the Authenticate method and there is no any Exception, otherwise the
application freezes !
Is the Indy 9 TIdSMTP component able to perform an SSL connection or not ?
Or it doesn't work with C++Builder and just with Delphi ?
Thanks a lot.
Technical Details
Message-ID:
<4321e6dd@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6591514d1530cd5c,start 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 Subject: How to connect to a SMTP server using SSL. Date: Fri, 9 Sep 2005 16:48:46 -0300 Lines: 28 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.17.89.34 Message-ID: <4321e6dd@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1126295261 200.17.89.34 (9 Sep 2005 12:47:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail