MailBee.NET Objects 7.2

MailBeeSmtpLoginBadMethodException Class

The exception that is thrown when the SMTP server reports the given ESMTP SASL authentication method is not supported and use of another authentication methods is not allowed by the application.

For a list of all members of this type, see MailBeeSmtpLoginBadMethodException Members.

System.Object
   System.Exception
      System.ApplicationException
         MailBee.MailBeeException
            MailBee.MailBeeNetworkException
               MailBee.MailBeeRemoteHostException
                  MailBee.MailBeeProtocolException
                     MailBee.MailBeeEmailProtocolException
                        MailBee.MailBeeEmailProtocolNegativeResponseException
                           MailBee.SmtpMail.MailBeeSmtpNegativeResponseException
                              MailBee.SmtpMail.MailBeeSmtpLoginNegativeResponseException
                                 MailBee.SmtpMail.MailBeeSmtpLoginBadMethodException

[Serializable]
public class MailBeeSmtpLoginBadMethodException : MailBeeSmtpLoginNegativeResponseException, IMailBeeLoginBadMethodException

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

By default, if a particular ESMTP SASL authentication method is not supported by the server, MailBee switches to the previous method listed in AuthMethods property value. If no more methods left, MailBeeLoginNoSupportedMethodsException is thrown. However, if UseSingleMethodOnly flag is set in AuthOptions property value, MailBee will not try other methods. Instead, if will immediately throw MailBeeSmtpLoginBadMethodException.

Note   This exception does not indicate that authentication using the given method failed. Instead, it indicates the method itself is not supported by the server. When the method is supported but the authentication using this method fails (invalid account name/password), MailBee does not try another methods (there would be no sense if it did), and throws MailBeeSmtpLoginBadCredentialsException.

Requirements

Namespace: MailBee.SmtpMail

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

See Also

MailBeeSmtpLoginBadMethodException Members | MailBee.SmtpMail Namespace | AuthenticationMethods | AuthenticationOptions | MailBeeSmtpLoginBadCredentialsException