Article View: borland.public.cppbuilder.internet.socket
Article #703Re: Error : EIdSMTPReplyError - when sending emails
From: Remy Lebeau (TeamB)
Date: Wed, 14 Nov 2007 17:50
Date: Wed, 14 Nov 2007 17:50
47 lines
2712 bytes
2712 bytes
"Paul Coshott" <paul@pacsoftware.com.au> wrote in message
news:473aba24$1@newsgroups.borland.com...
> exception class : EIdSMTPReplyError
EIdSMTPReplyError is throw when the server returns an error in reply to a
command.
> exception message : Directory unavailable.
There is no way to diagnose that for sure without seeing the
commands/replies and the server's trace logs, but looking at prior
discussions about that error message suggest that it may be a relaying error
on the server side that is being passed back to you. Your exchange server
might be trying to establish an outbound connection to another server, and
it is that server that is sending back the original error. Have a look at
the newsgroup archives for yourself:
http://groups.google.com/groups?q=smtp+%22directory+unavailable%22
> Some have the same exception class, but the message is : Unknown.
Then the server is not providing an error message, or "Unknown" is the
actual message.
> Are the settings different to what is needed for a simple network
> without exchange ?
No. SMTP is SMTP regardless of the server software being used.
> Should I allow the AuthType property to be set by the user.
That is up to you to decide.
> This is set to atDefault at the moment.
That will use the outdated AUTH LOGIN command, which many servers do not
support anymore as it is not secure. It has not been completely obsoleted
yet, so many servers do still accept it, but it is not recommended anymore.
If you set AuthType to atSASL instead, then you can use TIdSMTP's
SASLMechanisms collection to use stronger encryption methods, such as
CRAM-MD5. You can also continue to support AUTH LOGIN via the
SASLMechanisms collection as well.
Gambit
Technical Details
Message-ID:
<473b35ba$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<473aba24$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ab5ceea664ec9753 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: <473aba24$1@newsgroups.borland.com> Subject: Re: Error : EIdSMTPReplyError - when sending emails Date: Wed, 14 Nov 2007 09:50:42 -0800 Lines: 49 Organization: Lebeau Software X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 NNTP-Posting-Host: 207.178.157.90 Message-ID: <473b35ba$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1195062714 207.178.157.90 (14 Nov 2007 09:51:54 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail