System.Net.Mail.SmtpClient.Port Property

Gets or sets the port used for SMTP transactions.

Syntax

public int Port { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The value of the SmtpClient.Port property can also be set using constructors or the application or machine configuration file. For more information about using configuration files, see mailSettings for system.net. If information is specified using this property, this information overrides the configuration file settings.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0