SmtpAppender Port Property | Apache log4net™ SDK Documentation

The port on which the SMTP server is listening

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public int Port { get; set; }

    Public Property Port As Integer
    	Get
    	Set

    public:
    property int Port {
    	int get ();
    	void set (int value);
    }

    member Port : int with get, set

#### Property Value

Type: Int32
Remarks

Caution
Server Port is only available on the MS .NET 1.1 runtime.

The port on which the SMTP server is listening. The default port is 25. The Port can only be changed when running on the MS .NET 1.1 runtime.

See Also

#### Reference

SmtpAppender Class
log4net.Appender Namespace