|Subject:||Re: Suggestions required for handling SMTP Relay exceptions.|
|Posted by:||Remy Lebeau (Indy Team) (email@example.com)|
|Date:||Thu, 5 Apr 2007|
"Eddie Lotter" <no…@nowhere.com> wrote in message
> When a message has multiple recipients, the SMTP Relay component
> will send the message to all recipients in the TO, CC and BCC lists.
As it should be.
> If any one of those recipients has a transient problem, how did
> the Indy designers intend for developers to retry sending the
> message to just the problem addresses without altering the
> recipient list?
TIdSMTPRelay and TIdSMTP both derive from TIdSMTPBase, which has a
published OnFailedRecipient event. When the server rejects a
recipient, the application can use that event to decide whether to
continue sending the message to the remaining recipients. So the
application can store the failed recipients into a separate list and
then resend the message later on to just them.
Suggestions required for handling SMTP Relay exceptions. posted by Eddie Lotter on Wed, 4 Apr 2007