GetMessageSize Method

Get message's size in bytes.

[Syntax]
C++: HRESULT GetMessageSize( long* pVal )
Visual Basic: GetMessageSize( ) As long
C#: long GetMessageSize()

Return Value

This method returns message's size.

Usage Example

[JScript]
var oMsg = new ActiveXObject("ANPOP.POPMSG");

if( oMsg.ImportFile("c:\test.eml") == 0 )
  WScript.Echo("Current email's size is " & oMsg.GetMessageSize());
else
  WScript.Echo("error with ImportFile");
  

See Also

RawContent Property


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