🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1006

Re: SMTP Authentication + Indy 10

#1006
From: JLoz
Date: Fri, 22 Jun 2007 18:13
51 lines
2447 bytes
>Does it happen only when you are using SSL, or does it happen all the
>time?  The SSL IOHandler is known to cause such exceptions
>unexpectedly.

Yes.  This only happens when I use SSL.  What do you normally do?  I could 
put a try catch around it but then I would be assuming all those exeptions 
are not errors.

Thanks again,

JLoz

"JLoz" <jfsierra@excite.com> wrote in message 
news:467bc49c@newsgroups.borland.com...
> Thanks!
>
> I was obviously overcomplicating things.  It works now.
>
> The only thing is that an exception is thrown 'Connection closed 
> gracefully' when I send the
> disconnect command this way
>
> IdSMTP1->Disconnect(true);
>
> I read an article about this exception where it says that this is an error 
> when it happens in the client side.  I could send 
> IdSMTP1->Disconnect(false) and let the server take notice of the client 
> being disconnected but I am not sure whether this is the right approach...
>
> The code is like this
>
> ...
>            __finally
>            {
>                IdSMTP1->Disconnect(true);
>            }
>            Header.Set("Result", "1");
>        }
>        catch (const Exception& E)
>        {
>            Header.Set("Error", E.Message);
>            Header.Set("Result", "0");
>        }
>
>        IdMessage1->Clear();
>    }
>
> JLoz
>
>
> 
Technical Details
Message-ID: <467c1140@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <467b0944$1@newsgroups.borland.com> <467b2d42$1@newsgroups.borland.com> <467bc49c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b4680f9741cacd31
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "JLoz" <jfsierra@excite.com>
From: "JLoz" <jfsierra@excite.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <467b0944$1@newsgroups.borland.com> <467b2d42$1@newsgroups.borland.com> <467bc49c@newsgroups.borland.com>
Subject: Re: SMTP Authentication + Indy 10
Date: Fri, 22 Jun 2007 14:13:21 -0400
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 63.163.143.187
Message-ID: <467c1140@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1182536000 63.163.143.187 (22 Jun 2007 11:13:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail