avoiding no such recipient exception

Giganews Newsgroups
Subject: avoiding no such recipient exception
Posted by:  Bj√∂rn Gundermann (spam@gundermann-software.de)
Date: Mon, 27 Feb 2006

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 áppears?
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?

Björn

Replies