LumiSoft Net Help
AuthGetStrongestMethod Method (userName, password)
NamespacesLumiSoft.Net.SMTP.ClientSMTP_ClientAuthGetStrongestMethod(String, String)
Gets strongest authentication method which we can support from SMTP server. Preference order DIGEST-MD5 -> CRAM-MD5 -> LOGIN -> PLAIN.
Declaration Syntax
C#Visual BasicVisual C++F#
public AUTH_SASL_Client AuthGetStrongestMethod(
	string userName,
	string password
)
Public Function AuthGetStrongestMethod ( 
	userName As String,
	password As String
) As AUTH_SASL_Client
public:
AUTH_SASL_Client^ AuthGetStrongestMethod(
	String^ userName, 
	String^ password
)
member AuthGetStrongestMethod : 
        userName : string * 
        password : string -> AUTH_SASL_Client 
Parameters
userName (String)
User name.
password (String)
User password.
Return Value
AUTH_SASL_Client
Returns authentication method.
Exceptions
ExceptionCondition
ObjectDisposedExceptionIs raised when this object is disposed and this method is accessed.
InvalidOperationExceptionIs raised when SMTP client is not connected .
ArgumentNullExceptionIs raised when userName or password is null reference.
ArgumentExceptionIs raised when any of the arguments has invalid value.
NotSupportedExceptionIs raised when SMTP server won't support authentication or we don't support any of the server authentication mechanisms.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119