ImportMessage Method  
 

Import a new message from the specified text file.

Syntax

object.ImportMessage( FileName )

Parameters

FileName
A string that specifies the name of the file to import the message from.

Return Value

A value of zero is returned if the method succeeds. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

Remarks

The ImportMessage method replaces the current message with the message contained in the specified text file. Note that calling this method will result in the Bcc property value being cleared.

See Also

Bcc Property, AttachFile Method, ExportMessage Method, ExtractFile Method