|Subject:||Re: IdSMTP1.Send(m) - what#s the behaviour if one recipients address is wrong?|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Thu, 19 Aug 2004|
"Stefan Westner" <westnerNOSP…@iwadis.de> wrote in message
> 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
> or will it deliver the message to none of all
IdSMTP1.Send(m) - what#s the behaviour if one recipients address is wrong? posted by Stefan Westner on Thu, 19 Aug 2004