To Property
To Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Contains a list of principal (To) recipients for this message.
Applies To
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Syntax
[Visual Basic]Property To As String
[C++]HRESULT get_To(BSTR* pVal);
Parameters
- pVal
Returns the value of the To property as a reference to a BSTR.
Remarks
This property is also available as the urn:schemas:mailheader:to field (to Field) and the urn:schemas:http:to field (to Field).
The string in the To property can represent a single recipient or multiple recipients. See the BCC Property for more information about formatting and setting e-mail address properties.
You must set at least one recipient in either the BCC Property, the CC Property, or the To property. If you call the Post Method or the Send Method without designating at least one recipient, an error is returned.
The default value of To is an empty string.
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.