SmtpServerAuthMethods Property
Gets or sets a set of authentication methods which can be used when authenticating the user on the server.

Namespace: MailBee.SmtpMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public AuthenticationMethods AuthMethods { get; set; }

Property Value

Type: AuthenticationMethods
An AuthenticationMethods value containing bitwise combination of flags specifying which SASL authentication methods can be used when authenticating the user on the server. The default value is None (ESMTP authentication is not used, so that AccountName and Password values are ignored).

This property specifies a set of the methods MailBee can choose from during performing ESMTP authentication (starting from the most secure method to less secure). MailBee, however, will not try methods which are not supported by the server even if they are listed in AuthMethods value. In particular, only SASL methods can be tried, since ESMTP authentication does not support any non-SASL methods.

Sometimes, the mail server may support certain SASL method even if it's not listed in the server capabilities. To force MailBee try even those methods which seem to be unsupported by the server, set TryUnsupportedMethods flag in AuthOptions property value.

For example of using OAuth 2.0, see GetXOAuthKeyStatic(String, String) topic.

See Also