SmtpAppenderUsername Property Apache log4net™ SDK Documentation
The username to use to authenticate with the SMTP server

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 4.0

public string Username { get; set; }

Property Value

Type: String

Caution note 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