Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

To Property

Exchange Server 2003

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.