|
Export the current message to a text file.
Syntax
object.ExportMessage( FileName,
[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
- An optional integer value which specifies one or more options.
If this argument is omitted, the Options property value will
be used as the default. The following values may be combined using
a bitwise Or operator:
Value |
Description |
&H100 |
mailOptionAllHeaders |
All headers, including the Bcc, Received, Return-Path,
Status and X400-Received header fields will be exported.
Normally these headers are not exported because they are only
used by the mail transport system. This option can be useful
when exporting a message to be stored on the local system, but
should not be used when exporting a message to be delivered to
another user. |
&H200 |
mailOptionKeepOrder |
The original order in which the message header fields were
set or imported are preserved when the message is
exported. |
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 ExportMessage copies the current message to the
specified file. If the file does not exist it will be created,
otherwise it will be overwritten with the contents of the
message.
See Also
ExtractFile Method,
ImportMessage Method
|
|