MapiMessage Constructor (String, String, String, String)

Initializes a new instance of the MapiMessage class.

Namespace:  Aspose.Email.Mapi
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public MapiMessage(
	string from,
	string to,
	string subject,
	string body
)

Parameters

from
Type: SystemString
The From address.
to
Type: SystemString
The addresses of recipients. Note, that addresses are separated by semicolon.
subject
Type: SystemString
The message subject.
body
Type: SystemString
The message body.
Exceptions
ExceptionCondition
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