Share via


EmailAddress Property (IAddressee)

Topic Last Modified: 2006-06-13

Contains the e-mail address of an addressee.

Applies To

IAddressee Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Property EmailAddress As String
HRESULT get_EmailAddress(BSTR* pVal);HRESULT put_EmailAddress(BSTR Val);

Parameters

  • pVal
    Returns the value of the EmailAddress property as a reference to a BSTR.
  • Val
    Sets the value of the EmailAddress property to the value of the BSTR.

Remarks

This property defaults to the empty string until the addressee is resolved using the CheckName Method. After the addressee is resolved, the EmailAddress property contains the e-mail address for the addressee as defined in the corresponding directory object. If the search criteria were ambiguous and multiple matches occurred, the EmailAddress remains empty unless previously set.

Note that you can set the EmailAddress explicitly and then call CheckName Method. The EmailAddress is then used along with other property values when attempting to resolve the addressee to a directory object.