How to use OnFailedRecipient?

Giganews Newsgroups
Subject: How to use OnFailedRecipient?
Posted by:  Louis Valmeras (valmlou…@hotmail.com)
Date: Mon, 13 Dec 2010

I am using Indy 10 SMTP with Intraweb and RAD Studio XE Enterprise.
I want to get an email when there's invalid email addresses when I send emails to my users.
So I use 2 SMTP components (I send the emails to my users using SMTP1):
STMP1FailedRecipient()
  {
    try
      {
      SMTP2->QuickSend();
      }
    catch(Exception &exception) {}

    VContinue = true;
  }
I don't get any exception from SMTP2. It seems that it sends emails to my email address when there's an invalid email address. But I don't get any email.
Where's the problem?

Replies