SmtpServerAuthMethods Property |
Namespace: MailBee.SmtpMail
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.