SmtpNetworkElement.DefaultCredentials Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Determines whether or not default user credentials are used to access an SMTP server. The default value is false.

Namespace:   System.Net.Configuration
Assembly:  System (in System.dll)

[ConfigurationPropertyAttribute("defaultCredentials", DefaultValue = false)]
public bool DefaultCredentials { get; set; }

Property Value

Type: System.Boolean

true indicates that default user credentials will be used to access the SMTP server; otherwise, false.

.NET Framework
Available since 2.0
Return to top