New Method

Creates a new email server.

Syntax

Sub New(name, host, port, user, password, secureMailOption, protocol)


Parameters


name

Type: String

The name of the server


host

Type: String

The host URL of the server


port

Type: Integer

The host port of the server


user

Type: String

The user of the host account


password

Type: Boolean

The password of the host account


secureMailOption

Type: VSSecureMailOption

The secure mail option for the server


protocol

Type: VSMailProtocol

The mail protocol for the server



Return Value


Type: VSMailServer

Examples

IronPython

#Create mail server

server = VSMailServer(serverName, "pop-mail.outlook.com", 995, "info@requrance.com", "secret", VSSecureMailOption.SslOnConnect, VSMailProtocol.Pop3)
Host.ScriptData.MailServer[serverName] = server


C#

//Create mail server

VSMailServer server = new VSMailServer(serverName, "pop-mail.outlook.com", 995, "info@requrance.com", "secret", VSSecureMailOption.SslOnConnect, VSMailProtocol.Pop3);
ScriptData.set_MailServer(serverName, server);

Remarks