MapiRecipient.EmailAddress

MapiRecipient.EmailAddress property

Gets or sets the email address of the message recipient or sender.

public string EmailAddress { get; set; }

Property Value

The email address.

Exceptions

exceptioncondition
ArgumentNullExceptionthrows if recipient address is null or empty.
ArgumentExceptionthrows if recipient address is not in a recognized format.

Remarks

Note, this property displays an address in SMTP format. It means that if MapiRecipient.AddressType == “EX” and MapiPropertyTag.PR_EMAIL_ADDRESS contain an address in Exchange-style, the value for mapiRecipient.EmailAddress property filling is picked from PR_SMTP_ADDRESS. When setting a value, the values of PR_SEARCH_KEY and PR_ENTRYID properties are updated as well.

See Also