Get specified message header item.
[Syntax] C++: HRESULT GetHeaderItem( BSTR sItem, BSTR * pVal ) Visual basic: GetHeaderItem( sItem As String ) As String C#: string GetHeaderItem()
Parameters
sItem
Name of the header item.
Return Value
This Method returns the value of specified message header item.
Usage Example
[VBScript]
Dim oMsg
Set oMsg = CreateObject("ANPOP.POPMSG")
If oMsg.ImportFile("c:\test.eml") = 0 Then
WScript.Echo oMsg.GetHeaderItem("X-Mailer")
WScript.Echo oMsg.GetHeaderItem("Content-Transfer-Encoding")
Else
WScript.Echo "error with ImportFile"
End If
See Also
2001-2007 © Copyright AdminSystem Software Limited. All rights reserved.