Click or drag to resize

SmtpClient Constructor (String, ConnectionSecurity, Boolean)

Initializes new instance of SmtpClient class with specified host address, ConnectionSecurity option and option to ignore SSL certificate errors.

Namespace:  GemBox.Email.Smtp
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 13.0.35.1012
Syntax
public SmtpClient(
	string host,
	ConnectionSecurity security,
	bool acceptAnyCertificate
)

Parameters

host
Type: SystemString
The address of the server.
security
Type: GemBox.Email.SecurityConnectionSecurity
A constant that determines connection security level.
acceptAnyCertificate
Type: SystemBoolean
True to ignore any SSL certificate errors; otherwise, false.
See Also