IAdmExchangeMailOps
The IAdmExchangeMailOps interface allows you to establish and delete e-mail addresses for users, contacts and groups in Exchange.
Inheritance: IUnknown
Methods
-
Method
-
Description
-
MailEnable()
-
Establishes an e-mail address for the object in Exchange.
-
MailDisable()
-
Mail-disables a user by removing the attributes used by Exchange.
-
RemoveExchangeAttributes()
-
Removes all Exchange properties from the object.
Properties
-
Property
-
Description
-
RecipientType
-
Gets a value indicating whether the object is mail-enabled or mailbox-enabled.
Details
MailEnable()
Establishes an e-mail address for the object in Exchange.
void MailEnable(string alias,
string emailAddress,
string emailAddressType,
string administrativeGroup)
Parameters
- alias - Specifies the alias of the user, contact or group. It cannot exceed 64 characters and must be unique in the forest. An alias can contain characters from A to Z (uppercase or lowercase), digits from 0 to 9, !, #, $, %, &, ', *, +, -, /, =, ?, ^, _, `, {, |, } or ~. One or more periods can be embedded in an alias, but each period should be preceded and followed by at least one of the other characters.
- emailAddress - Specifies an email address outside the organization. Email messages sent to a mail-enabled user or contact are sent to this external address. When mail-enabling a group, the parameter must be set to
null
. - emailAddressType - Specifies the type of the external email address. When mail-enabling a group, the parameter must be set to
null
. - administrativeGroup - Specifies the ADS path of the Exchange administrative group for the e-mail address. When mail-enabling an object for Exchange 2007 and higher, the parameter must be set to
null
.
Examples
MailDisable()
Mail-disables a user by removing the attributes used by Exchange.
void MailDisable()
Examples
RemoveExchangeAttributes()
Removes all Exchange properties from the object.
void RemoveExchangeAttributes()
Examples
RecipientType
Gets a value indicating whether the object is mail-enabled or mailbox-enabled.
- Type:
- ADM_EXCHANGERECIPIENTTYPE_ENUM
- Access:
- Read-only
Requirements
Minimum required version: 2010.2