MapiMessage

MapiMessage constructor (1 of 4)

Initializes a new instance of the MapiMessage class.

public MapiMessage()

See Also


MapiMessage constructor (2 of 4)

Initializes a new instance of the MapiMessage class.

public MapiMessage(OutlookMessageFormat format)
Parameter Type Description
format OutlookMessageFormat Defines whether to use Unicode or ASCII encoding for this message.

See Also


MapiMessage constructor (3 of 4)

Initializes a new instance of the MapiMessage class.

public MapiMessage(string from, string to, string subject, string body, OutlookMessageFormat format)
Parameter Type Description
from String The From address.
to String The addresses of recipients. Note, that addresses are separated by semicolon.
subject String The message subject.
body String The message body.
format OutlookMessageFormat Defines whether to use Unicode or ASCII encoding for this message.

Exceptions

exception condition
ArgumentNullException Is being thrown if address of recipient is null or empty.
ArgumentException Is being thrown if sender or recipient address is not in a recognized format.
InvalidEnumArgumentException Is being thrown if format parameter is not a valid enumeration member.

See Also


MapiMessage constructor (4 of 4)

Initializes a new instance of the MapiMessage class.

public MapiMessage(string from, string to, string subject, string body)
Parameter Type Description
from String The From address.
to String The addresses of recipients. Note, that addresses are separated by semicolon.
subject String The message subject.
body String The message body.

Exceptions

exception condition
ArgumentNullException throws if address of recipient is null or empty.
ArgumentException throws if sender or recipient address is not in a recognized format.

See Also