SmtpAppender Authentication Property | Apache log4net™ SDK Documentation

The mode to use to authentication 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 SmtpAppenderSmtpAuthentication Authentication { get; set; }

    Public Property Authentication As SmtpAppenderSmtpAuthentication
    	Get
    	Set

    public:
    property SmtpAppenderSmtpAuthentication Authentication {
    	SmtpAppenderSmtpAuthentication get ();
    	void set (SmtpAppenderSmtpAuthentication value);
    }

    member Authentication : SmtpAppenderSmtpAuthentication with get, set

#### Property Value

Type: SmtpAppender
SmtpAuthentication
Remarks

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

Valid Authentication mode values are: None, Basic, and Ntlm. The default value is None. When using Basic you must specify the Username and Password to use to authenticate. When using Ntlm the Windows credentials for the current thread, if impersonating, or the process will be used to authenticate.

See Also

#### Reference

SmtpAppender Class
log4net.Appender Namespace