Re: Suggestions required for handling SMTP Relay exceptions.

Giganews Newsgroups
Subject: Re: Suggestions required for handling SMTP Relay exceptions.
Posted by:  Remy Lebeau (Indy Team) (no.spam@no.spam.com)
Date: Thu, 5 Apr 2007

"Eddie Lotter" <no…@nowhere.com> wrote in message
news:DEB55D2E2421E340no…@nowhere.com...

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

Gambit

Replies

In response to

Suggestions required for handling SMTP Relay exceptions. posted by Eddie Lotter on Wed, 4 Apr 2007