Port Property

The host port of a server.

Syntax

Property Port As Long

Parameters

None

Examples

IronPython

#Get mail server port
myPort = Host.ScriptData.MailServer["myServer"].Port

#Set mail server port
Host.ScriptData.MailServer["myServer"].Port = 995


C#

//Get mail server port
long myPort = ScriptData.MailServers["myServer"].Port;

//Set mail server port
ScriptData.MailServers["myServer"].Port = 995;

Remarks