Get the string value of specified configuration items.
BSTR GetItem([in] BSTR bstrKey)
Parameters
bstrKey
Configuration item name. All available items can be found in "C:\Program Files\EmailArchitect\conf\config.txt".
Return Value
Return value is the string value of specified configuration item.
Usage Example
Dim server, user, password, requestAddr
server = "localhost"
user = "system"
password = "mypassword"
requestAddr = "192.168.0.1"
Dim oSvr
Set oSvr = CreateObject("EmailArchitectObjects.ServerRoot")
r = oSvr.Connect( server, user, password, 0, requestAddr )
If r <> 0 Then
  WScript.Echo( "connect server failed!" )
  WScript.Quit  
End If
Dim oConfig
Set oConfig = oSvr.ServerConfig
WScript.Echo "SMTP service listen port is " & oConfig.GetItem("smtpd/listenport")
		 
 
See Also