SmtpNetworkElement::Port Property
.NET Framework (current version)
Gets or sets the port that SMTP clients use to connect to an SMTP mail server. The default value is 25.
Assembly: System (in System.dll)
public: [ConfigurationPropertyAttribute("port", DefaultValue = 25)] property int Port { int get(); void set(int value); }
Property Value
Type: System::Int32A string that represents the port to connect to an SMTP mail server.
.NET Framework
Available since 2.0
Available since 2.0
Show: