To Property (CDONTS NewMail Object)

To Property (CDONTS NewMail Object)

The To property adds to the list of principal (To) recipients for the NewMail object. Write-only.

Syntax

        objNewMail.To 

Data Type

String

Remarks

The value you use to set the To property can represent a single recipient or a list of recipients. Each recipient must be represented by a full messaging address:

  "useraddress@example.com"
 

Multiple recipients on the list are separated by semicolons:

  "user1@example.com;user2@example.com;user3@example.com"
 

If both the To property and the To parameter of the Send method are supplied, the NewMail object is sent to all recipients on both lists.

See Also

Concepts

NewMail Object (CDONTS Library)