Skip to content

M_NChronicle_SMTP_Configuration_SmtpChronicleLibraryConfiguration_UsingNetworkMethod_4

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

SmtpChronicleLibraryConfiguration.UsingNetworkMethod Method (String, Int32, String, SecureString, String, Boolean)

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,
	SecureString password,
	string domain,
	bool useSsl = true
)

VB

Public Sub UsingNetworkMethod ( 
	host As String,
	port As Integer,
	username As String,
	password As SecureString,
	domain As String,
	Optional useSsl As Boolean = true
)

F#

member UsingNetworkMethod : 
        host : string * 
        port : int * 
        username : string * 
        password : SecureString * 
        domain : string * 
        ?useSsl : bool 
(* Defaults:
        let _useSsl = defaultArg useSsl true
*)
-> 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.Security.SecureString
The password associated with the username for the credentials.
domain
Type: System.String
The domain associated with the credentials.
useSsl (Optional)
Type: System.Boolean
Whether emails are to be sent via a secure SSL connection.

See Also

Reference

SmtpChronicleLibraryConfiguration Class
UsingNetworkMethod Overload
NChronicle.SMTP.Configuration Namespace

Clone this wiki locally