To Property

Gets and sets the recipient of the current message.

Syntax

object.To [= value]

The To property syntax has the following parts:

Part Description
object An object expression that evaluates to an InternetMail object.
value A string which specifies one or more recipient addresses.

Remarks

The To property returns the list of addresses that received a copy of the current message. If there is no current message, or the To header field is not defined, then this property will return an empty string.

Setting the To property creates or changes the value of the To header field in the message and specifies additional recipients of the message. Multiple addresses may be specified by separating them with a comma. Each address must conform to the standard Internet address format.

Data Type

String

See Also

Bcc Property, Cc Property, From Property, ReplyTo Property


Copyright © 2008 Catalyst Development Corporation. All rights reserved.