MailBee.NET Objects 3.1

SmtpServer.AuthMethods Property

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

public MailBee.AuthenticationMethods AuthMethods {get; set;}

Property Value

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).

Remarks

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.

See Also

SmtpServer Class | MailBee.SmtpMail Namespace