SmtpNetworkElement::Port Property

 

Gets or sets the port that SMTP clients use to connect to an SMTP mail server. The default value is 25.

Namespace:   System.Net.Configuration
Assembly:  System (in System.dll)

public:
[ConfigurationPropertyAttribute("port", DefaultValue = 25)]
property int Port {
	int get();
	void set(int value);
}

Property Value

Type: System::Int32

A string that represents the port to connect to an SMTP mail server.

.NET Framework
Available since 2.0
Return to top
Show: