|Subject:||Re: Providing better error messages|
|Posted by:||Remy Lebeau (TeamB) (firstname.lastname@example.org)|
|Date:||Fri, 8 Oct 2004|
"Christian Tiberg" <ctibe…@home.se> wrote in message
> When sending mail, the only error message I can get to the client
> is 'Transaction failed', by setting LAction := dTransactionFailed
> in the MsgReceive event of the SMTP server. This seems a little
> meager - isn't it possible to provide more detailed error messages?
> If so, how?
Under Indy 10, right? If so, then no, there is not. The reply is
Well, I suppose you could throw an Exception, but I would not recommend that
since it won't allow the Context to finish configuring itself afterwards.
The alternative would be to re-write TIDSMTPServer to add a new property
that allows you to specify the response instead of using the hard-coded one.
Providing better error messages posted by Christian Tiberg on Fri, 8 Oct 2004