Catalyst Internet Mail .NET

InternetMail.ExportMessage Method (String)

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

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

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.

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.

The value of the Options property determines the default export options, if any have been specified.

See Also

InternetMail Class | SocketTools Namespace | InternetMail.ExportMessage Overload List