Re: avoiding no such recipient exception

Giganews Newsgroups
Subject: Re: avoiding no such recipient exception
Posted by:  Ciaran Costelloe (ccostell…@flogas.ie)
Date: Tue, 28 Feb 2006

Bjvrn Gundermann wrote:

> Hello,
>
> 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.

I don't use that and don't have the code near me, but I think you have
set a parameter or return type to tell Indy to ignore the bad recipient
and continue with sending the email?  If you don't want to continue,
you may need to trap the exception.

Ciaran

Replies

None

In response to

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