MailRecipient Class

Definition

Represents an email address that can be used when calling SendInsecureMessageFromApplication.

public class MailRecipient
Inheritance
MailRecipient

Remarks

The MailRecipient class contains the email address and the display name of the person to whom the mail is being sent. It provides the methods to get the XML representation that adheres to the schema for the SendInsecureMessageFromApplication method.

Constructors

MailRecipient(String, String)

Creates a new instance of the MailRecipient class with the specified email address and display name.

Properties

DisplayName

Gets or sets the display name of the person to which the email will be sent.

EmailAddress

Gets or sets the email address of the person who receives the email.

Methods

ToString()

Gets the XML representation of the email recipient as a string.

WriteXml(XmlWriter)

Writes the XML representation of the email recipient into the specified XML writer.