Protocol Property

The protocol of an email server.

Syntax

Property Protocol As VSMailProtocol

Parameters

None

Examples

IronPython

#Get mail server protocol
myProtocol = Host.ScriptData.MailServer["myServer"].Protocol

#Set mail server protocol
Host.ScriptData.MailServer["myServer"].Protocol = VSMailProtocol.Pop3


C#

//Get mail server protocol
VSMailProtocol myProtocol = ScriptData.MailServers["myServer"].Protocol;

//Set mail server protocol
ScriptData.MailServers["myServer"].Protocol = VSMailProtocol.Pop3;

Remarks