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

Declaration
property ToCC: String;  

Description
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: <john@smith.com>).  
Multiple recipients should be separated by semicolon (;) or comma (,).  
 
Examples  
<john@smith.com>  
"John Smith" <john@smith.com>, <info@appcontrols.com>, <webmaster@utilmind.com>  
"Aleksey Kuznetsov" <aleksey@utilmind.com>; "Webmaster" <webmaster@utilmind.com>  
 
tip If you wish to hide recipients from the message header — use ToBCC property (blind carbon-copy).  

Warning
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" <john@smith.com>  
 
However, the parser is smart enough to parse definitions like these:  
"John Smith, Inc;" <john@smith.com>  
"Smith, "A" John" <john@smith.com>  

See also
ToAddr and ToBCC properties.  
sIU/QH/K+!