Catalyst Internet Mail .NET

InternetMail.ExportMessage Method (String, MimeExportOptions)

Export the current message to a file on the local system.

[Visual Basic]
Overloads Public Function ExportMessage( _
   ByVal fileName As String, _
   ByVal options As MimeExportOptions _
) As Boolean
[C#]
public bool ExportMessage(
   string fileName,
   MimeExportOptions options
);

Parameters

fileName
A string which specifies the name of the file that will contain the message. If the file does not exist, it will be created. If it does exist, it will be overwritten with the contents of the message.
options
A MimeExportOptions enumeration value which specifies one or more export options.

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

Remarks

The ExportMessage method writes the current message to a file. If the file does not exist, it will be created. If it does exist, it will be overwritten with the contents of the message.

See Also

InternetMail Class | SocketTools Namespace | InternetMail.ExportMessage Overload List