ImportFile Method

Import an email file into this object to parse.

[Syntax]
C++: HRESULT ImportFile( BSTR FileName, long* pVal )
Visual Basic: ImportFile( FileName As String ) As long
C#: long ImportFile( string FileName )

Parameters

FileName

Name of the file to be imported.

Return Value

If this method succeeds, the return value is zero. If it fails, the return value is non-zero.

Usage Example

[JScript]
var oMsg = new ActiveXObject("ANPOP.POPMSG");
if( oMsg.ImportFile( "c:\\test.eml" ) == 0 )
  WScript.Echo( oMsg.GetSubject());
else
  WScript.Echo( "error with ImportFile" );

See Also

ExportFile Method
RawContent Property


2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.