MailBee.NET Objects 3.1

AuthenticationOptions Enumeration

Provides flags for tuning the authentication process.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum AuthenticationOptions

Remarks

These flags affect how MailBee selects authentication methods for login process.

By default, MailBee takes the list of the desired authentication methods (specified by authMethods parameter of Pop3.Login method for Pop3, authMethods parameter of Imap.Login method for Imap, or by SmtpServer.AuthMethods property for Smtp), filters out the methods not advertized by the server in its capabilities, and then tries the remained methods until compatible method is found. If such method was found, it's used for the authentication process. If not, an exception is thrown if exceptions are enabled.

The flags in this enumeration allow the developer to change the default behavior of MailBee.

Members

Member NameDescriptionValue
None No flags set. 0
TryUnsupportedMethods Force MailBee to try authentication methods regardless whether they are advertized by the server in its capabilities or not. 1
UseSingleMethodOnly Force MailBee not to switch to other authentication methods if the best (most secure) method is not supported by the server. 2
PreferSimpleMethods Force MailBee to try simple (i.e. non-secure) authentication methods before secure ones. In other words, MailBee will iterate through the list of desired methods in reverse order. This option is useful for communicating with mail servers which have errors in their secure authentication implementations. This flag is also set by default if SafeMode was true. 4

Requirements

Namespace: MailBee

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee Namespace | AuthenticationMethods | Login | Login | AuthMethods