SmtpAppender Username Property | Apache log4net™ SDK Documentation

The username to use to authenticate with the SMTP server

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

C#
VB
C++
F#
Copy

    public string Username { get; set; }

    Public Property Username As String
    	Get
    	Set

    public:
    property String^ Username {
    	String^ get ();
    	void set (String^ value);
    }

    member Username : string with get, set

#### Property Value

Type: String
Remarks

Caution
Authentication is only available on the MS .NET 1.1 runtime.

A Username and Password must be specified when Authentication is set to Basic, otherwise the username will be ignored.

See Also

#### Reference

SmtpAppender Class
log4net.Appender Namespace