Name Property (CDONTS Recipient Object)

The Name property returns or sets the name of the Recipient object as a string. Read/write (read-only for a recipient on a message in the Inbox).

Syntax

objRecip.Name 
 

The Name property is the default property of a Recipient object, meaning that objRecip is syntactically equivalent to objRecip.Name in Microsoft® Visual Basic® code.

Data Type

String

Remarks

The Name property returns an empty string if it has never been set or cannot be found.

Example

Dim strMsg As String 
' ... validate objects ... then display 
    strMsg = "Recipient address = " & objRecip.Address 
    strMsg = strMsg & "; Recipient name = " & objRecip.Name 
    MsgBox strMsg ' display recipient parts