🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: SMTP Authentication + Indy 10

#1001
From: Remy Lebeau (TeamB)
Date: Fri, 22 Jun 2007 17:03
34 lines
2346 bytes
"JLoz" <jfsierra@excite.com> wrote in message
news:467bc49c@newsgroups.borland.com...

> The only thing is that an exception is thrown 'Connection closed
gracefully'
> when I send the
> disconnect command this way

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.

> I read an article about this exception where it says that this is
> an error when it happens in the client side.

That depends on the reason why it is being thrown.  In this case, it
is more likely a false negative, and the connection was not really
closed.

> I could send IdSMTP1->Disconnect(false)

If you do that, your messages will never be delivered.   Setting the
ANotifyPeer parameter to false will prevent the QUIT command from
being sent to the server.  That command is required in order to
deliver the messages.  SMTP is a transactional protocol.  When you
send a message, the server does not deliver the message to the
recipient(s) right away.  It is put into a queue until the transaction
is concluded.  If the connection is closed without receiving the QUIT
command, the transaction is aborted and any queued messages are
discarded.  This is clearly explained in RFC 821.


Gambit
Technical Details
Message-ID: <467c0106$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder5.cambrium.nl!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.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 10:03:19 -0700
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.82.252.126
Message-ID: <467c0106$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1182531846 75.82.252.126 (22 Jun 2007 10:04:06 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feeder5.cambrium.nl!feeder4.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail