Authentication Property

log4net SDK Reference |

# SmtpAppender.Authentication Property

The mode to use to authentication with the SMTP server

[Visual Basic]
Public Property Authentication As SmtpAuthentication
[C#]
public SmtpAppender.SmtpAuthentication Authentication {get; set;}

#### 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

SmtpAppender Class | log4net.Appender Namespace