 | Server Constructor (String, Int32, Boolean, Boolean, String, String) |
Initializes a new Server Instance
Namespace:
SMTPRouter
Assembly:
SMTPRouter (in SMTPRouter.dll) Version: 1.0.0.4
Syntaxpublic Server(
string serverName,
int[] ports,
bool requiresAuthentication,
bool useSSL,
string queueName,
string queuePath
)
Public Sub New (
serverName As String,
ports As Integer(),
requiresAuthentication As Boolean,
useSSL As Boolean,
queueName As String,
queuePath As String
)
Dim serverName As String
Dim ports As Integer()
Dim requiresAuthentication As Boolean
Dim useSSL As Boolean
Dim queueName As String
Dim queuePath As String
Dim instance As New Server(serverName,
ports, requiresAuthentication, useSSL,
queueName, queuePath)
public:
Server(
String^ serverName,
array<int>^ ports,
bool requiresAuthentication,
bool useSSL,
String^ queueName,
String^ queuePath
)
Parameters
- serverName
- Type: SystemString
The Server Name (usually localhost) - ports
- Type: SystemInt32
Ports where the service will be available - requiresAuthentication
- Type: SystemBoolean
A flag to define whether authentication is required for this smtp server - useSSL
- Type: SystemBoolean
A flag to define whether it is necessary to use SSL - queueName
- Type: SystemString
Name of the Queue - queuePath
- Type: SystemString
Root folder where the queue will be located. Ensure you have permissions on that folder.
See Also