Address Property (Recipient Object)
Address Property (Recipient Object)
The Address property specifies the full address for the recipient. Read/write.
Syntax
objRecipient.Address
Data Type
String
Remarks
You should use the Recipient objects Address property to specify a custom address. The recipient Address uses the following syntax:
AddressType:AddressValue
where AddressType and AddressValue correspond to the values of the AddressEntry objects Type and Address properties.
The Recipient objects Address property represents the full address, the complete messaging address used by the MAPI system.
CDO sets the value of the Recipient objects Address property for you when you supply the Name property and call the recipients Resolve method.
The Address property corresponds to a combination of the MAPI properties PR_ADDRTYPE and PR_EMAIL_ADDRESS.
Example
' from the sample function Util_CompareAddressParts
' assume valid Recipient object
Set objAddrEntry = objOneRecip.AddressEntry
strMsg = "Recipient full address = " & objOneRecip.Address
strMsg = strMsg & "; AddressEntry type = " & objAddrEntry.Type
strMsg = strMsg & "; AddressEntry address = " & _
objAddrEntry.Address
MsgBox strMsg ' compare address components