MapiMessage.MapiMessage

MapiMessage()

Initializes a new instance of the MapiMessage class.

public MapiMessage()

See Also


MapiMessage(OutlookMessageFormat)

Initializes a new instance of the MapiMessage class.

public MapiMessage(OutlookMessageFormat format)
ParameterTypeDescription
formatOutlookMessageFormatDefines whether to use Unicode or ASCII encoding for this message.

See Also


MapiMessage(string, string, string, string, OutlookMessageFormat)

Initializes a new instance of the MapiMessage class.

public MapiMessage(string from, string to, string subject, string body, OutlookMessageFormat format)
ParameterTypeDescription
fromStringThe From address.
toStringThe addresses of recipients. Note, that addresses are separated by semicolon.
subjectStringThe message subject.
bodyStringThe message body.
formatOutlookMessageFormatDefines whether to use Unicode or ASCII encoding for this message.

Exceptions

exceptioncondition
ArgumentNullExceptionIs being thrown if address of recipient is null or empty.
ArgumentExceptionIs being thrown if sender or recipient address is not in a recognized format.
InvalidEnumArgumentExceptionIs being thrown if format parameter is not a valid enumeration member.

See Also


MapiMessage(string, string, string, string)

Initializes a new instance of the MapiMessage class.

public MapiMessage(string from, string to, string subject, string body)
ParameterTypeDescription
fromStringThe From address.
toStringThe addresses of recipients. Note, that addresses are separated by semicolon.
subjectStringThe message subject.
bodyStringThe message body.

Exceptions

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

See Also