Methods
GetItem | Get the string value of specified configuration items. |
GetIntItem | Get the numeric value of specified configuration items. |
PutItem | Update the value of specified configuration items. |
Remarks
ServerConfig sets/gets all configuration items at \conf\config.txt which contains all settings of EmailArchitect Server. Only "system" account has the permission to access this object.
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")