sendmail ToCC property
Return to Introduction  Previous page  Next page
Applies to
SendMail component.  

property ToCC: String;  

The ToCC property used to specify multiple recipients of the message. This is standard field known as carbon-copy and recipient will be able to reply to all others recipients.  
The value of ToCC property must have following format:  
"Name1" <address1>; "Name2" <address2> , "NameN" <addressN>  
The name of the recipient marked blue (must be between quotes ("), i.e: "John Smith"). You can leave the name blank and use just email address;  
E-mail address of recipient marked green (must be between brackets "<>", i.e: <>).  
Multiple recipients should be separated by semicolon (;) or comma (,).  
"John Smith" <>, <>, <>  
"Aleksey Kuznetsov" <>; "Webmaster" <>  
tip If you wish to hide recipients from the message header — use ToBCC property (blind carbon-copy).  

iiwarning Please don't use brackets (< and >) in the "Name" fields (between quotes). Otherwise the address will be parsed incorrectly. For example, following address will be parsed incorrectly!!:  
"John<g> Smith" <>  
However, the parser is smart enough to parse definitions like these:  
"John Smith, Inc;" <>  
"Smith, "A" John" <>  

See also
ToAddr and ToBCC properties.