Provides authentication methods to be used for logging in the user account on the server.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
When the application is a web application which operates under context of anonymous user, Windows Integrated Authentication will use the context of this anonymous user (which most likely doesn't have an account on the mail server). Thus, using Windows Integrated Authentication does not make sense for web apps operating under anonymous user account (Internet Guest User).
Note SaslNtlm and SaslKerberosGssApi in Windows Integrated Authentication mode authentication can only be used if the application has permissions to access Windows API (UnmanagedCode permission required).
| Member Name | Description | Value |
|---|---|---|
| None | No authentication. Often used with Smtp. | 0 |
| Regular | Standard authentication. Passwords are transmitted as clear-text. Not supported by SMTP servers. | 1 |
| Apop | Secure APOP authentication. Supported by most POP3 servers but cannot be used with other servers like SMTP because APOP is not a SASL method. | 2 |
| SaslUserDefined | A custom SASL authentication method implemented by the developer. | 4 |
| SaslLogin | SASL LOGIN authentication. Not secure but widely supported. Passwords are transmitted as Base64 strings. | 8 |
| SaslPlain | SASL PLAIN authentication. Not secure but widely supported. Passwords are transmitted as Base64 strings. | 16 |
| SaslCramMD5 | Secure SASL CRAM-MD5 authentication. Might not be supported by particular server implementations. | 32 |
| SaslDigestMD5 | Secure SASL DIGEST-MD5 authentication. Might not be supported by particular server implementations. | 64 |
| SaslNtlm | Secure SASL NTLM authentication (also known as Secure Password Authentication - SPA). In Windows domain environment such as Active Directory, can also be used to authenticate the current Windows user (in this case, the developer should pass a null reference (Nothing in Visual Basic) as accountName and password values). Might not be supported by particular server implementations. See remarks section for futher details regarding Windows Integrated Authentication. | 128 |
| SaslMsn | Secure SASL MSN authentication (equivalent to NTLM). Might not be supported by particular server implementations. | 256 |
| SaslKerberosGssApi | Secure SASL GSSAPI authentication (Kerberos). Used to authenticate the current Windows user in Windows domain environment such as Active Directory. accountName and password values will be ignored and can be left blank or a null reference (Nothing in Visual Basic). Might not be supported by particular server implementations. See remarks section for futher details regarding Windows Integrated Authentication. | 512 |
| Auto | Tells MailBee to automatically select the best supported authentication method and downgrade to insecure methods if secure methods are not supported by the server. | 1023 |
Namespace: MailBee
Assembly: MailBee.NET (in MailBee.NET.dll)
MailBee Namespace | AuthenticationOptions | Login | Login | AuthMethods | AuthPopBeforeSmtp