Name Property

The name of a server.

Syntax

Property Name As String

Parameters

None

Examples

IronPython

#Get mail server name
myName = Host.ScriptData.MailServer["myServer"].Name

#Set mail server name
Host.ScriptData.MailServer["myServer"].Name = "myServer" #See remarks


C#

//Get
string myName = ScriptData.MailServers["myServer"].Name;


//Set 
ScriptData.MailServers["myServer"].Name = "myServer"; //See remarks

Remarks

When changing a mail server name the key does not change.