On Feb 20, 2010, at 05:47, Jean-Paul Passama wrote:

> That was the tip. I found the RcptNameAdd() function in the code that was the 
> solution (I used many Rcpt.Add() and that wasn't the good way).

Yes, the RcptNameAdd() method will take three flattened string lists (for "TO", 
"CC", and "BCC") and split them by the ";" delimiter; and add each individual 
address to the recipient list in a loop.  This is a convenience function for 
when you have your lists already flattened.

If your application keeps the lists as TStrings or other type of array (which 
is common), it is inefficient to flatten the list first just to send it to 
RcptNameAdd() which will then split it again. This is why it is also important 
for developers to understand how to use RcptNames.Add().

You also may want to take a look at the source of TSmtpProt.pas.  The source 
code for ICS is usually the best documentation available.


        DZ-Jay [TeamICS]

To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to