Click or drag to resize

MailMessageLoad Method (String, MailMessageFormat)

Loads the message from the specified file.

Namespace:  GemBox.Email
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 13.0.35.1008
Syntax
public static MailMessage Load(
	string filePath,
	MailMessageFormat format
)

Parameters

filePath
Type: SystemString
A relative or absolute path to the file.
format
Type: GemBox.EmailMailMessageFormat
The message format.

Return Value

Type: MailMessage
MailMessage instance.
Exceptions
ExceptionCondition
ArgumentException File path is null or empty.
See Also