550 Response problem

Giganews Newsgroups
Subject: 550 Response problem
Posted by:  Alister Christie (alist…@salespartner.co.nz)
Date: Wed, 22 Feb 2006

I've upgraded from Indy 9 to Indy 10 and I am having problems with 550
responses when sending email via TIdSMTP.

I'm sending an email to a group of people using BCC, for example

vali…@xtra.co.nz
InvalidEmailAddre…@xtra.co.nz
vali…@xtra.co.nz

the smtp server (in this case smtp.xtra.co.nz) on
InvalidEmailAddre…@xtra.co.nz gives a 550 response (invalid mail box)
to this address and Indy throws an exception.  This was fine under Indy
9, however now that I have upgraded to indy 10 vali…@xtra.co.nz
recieves a blank email.

My code is effectively
...
    IdSMTP1.Connect;
    try
      IdSMTP1.Send(myIdMessage);
      result := TRUE;
    except
      IdSMTP1.Disconnect;
      fEmailSender.Close;
      raise;
    end;
    IdSMTP1.Disconnect;
...

I'm getting around the problem currently by making 550 an accecptable
response in IdSMTPBase.pas
  RCPTTO_ACCEPT : array [0..2] of SmallInt = (250, 251, 550);
But this causes me a different headache - did the email go or not?

Hope someone can give me some insite here,

thanks,

Alister

Replies