Skip to content

M_NChronicle_SMTP_Configuration_SmtpChronicleLibraryConfiguration_UsingNetworkMethod_7

Andrew James edited this page Aug 3, 2017 · 1 revision

SmtpChronicleLibraryConfiguration.UsingNetworkMethod Method (String, Int32, String, String, X509Certificate[])

Set all emails to be sent via a network connection to an SMTP server.

Namespace: NChronicle.SMTP.Configuration
Assembly: NChronicle.SMTP (in NChronicle.SMTP.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public void UsingNetworkMethod(
	string host,
	int port,
	string username,
	string password,
	params X509Certificate[] certificates
)

VB

Public Sub UsingNetworkMethod ( 
	host As String,
	port As Integer,
	username As String,
	password As String,
	ParamArray certificates As X509Certificate()
)

F#

member UsingNetworkMethod : 
        host : string * 
        port : int * 
        username : string * 
        password : string * 
        certificates : X509Certificate[] -> unit 

Parameters

 

host
Type: System.String
Name or IP address of SMTP server.
port
Type: System.Int32
Port to connect to the SMTP server via.
username
Type: System.String
The username for the credentials to authenticate with.
password
Type: System.String
The password associated with the username for the credentials.
certificates
Type: System.Security.Cryptography.X509Certificates.X509Certificate[]
The certificates to authenticate with (sets all emails to be sent by a secure SSL connection).

See Also

Reference

SmtpChronicleLibraryConfiguration Class
UsingNetworkMethod Overload
NChronicle.SMTP.Configuration Namespace

Clone this wiki locally