Re: IdSMTP1.Send(m) - what#s the behaviour if one recipients address is wrong?

Giganews Newsgroups
Subject: Re: IdSMTP1.Send(m) - what#s the behaviour if one recipients address is wrong?
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Thu, 19 Aug 2004

"Stefan Westner" <westnerNOSP…@iwadis.de> wrote in message
news:268646FC44A9E240westnerNOSP…@iwadis.de...

> if I use a IdSMTP1.Send(m); where m is my TIdMessage
> which has three recipients and the second of them is an
> invalid e-mail-address, what's the behaviour of the .Send?

Assuming the server rejects the recipient, the server will report an error,
which Send() will then detect and throw an exception.

> Will .Send deliver the first, throws an exception for
> the second and delivers the third

No.  All of the recipients have to be specified to the server before the
actual data is.  If any of the recipients fail, the data is not transmitted
at all

> or will it deliver the message to none of all

Correct.

Gambit

Replies

None

In response to

IdSMTP1.Send(m) - what#s the behaviour if one recipients address is wrong? posted by Stefan Westner on Thu, 19 Aug 2004