Re: avoiding no such recipient exception

Giganews Newsgroups
Subject: Re: avoiding no such recipient exception
Posted by:  Ciaran Costelloe (ccostell…
Date: Mon, 27 Feb 2006

Bjvrn Gundermann wrote:

> I am using Indy 10.052  If a try to send a mail to an invalid
> recipient I generate the exception and a messagebox with the text "No
> such recipient" is shown.
> Exception is raised inside TIdSMTPBase.SendNoPipelining
> How can I avoid that this exception is raised and the message box
> appears?  I am using the IdSMTPFailedRecipient event so I am informed
> about the wrong recipient e-mail address. Automatic sending of
> messages is not very fine if an exception creates check boxes.
> Is there a way without creating a new class and overriding the send
> function?

By default, the IDE shows all exceptions, even if your code catches
them.  Check to see if it happens when the program is run outside the



In response to

avoiding no such recipient exception posted by Björn Gundermann on Mon, 27 Feb 2006