Authenticates user. Authenticate method chooses strongest possible authentication method supported by server,
preference order DIGEST-MD5 -> CRAM-MD5 -> LOGIN.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
[ObsoleteAttribute("Use method 'Auth' instead.")] public void Authenticate( string userName, string password )
<ObsoleteAttribute("Use method 'Auth' instead.")> Public Sub Authenticate ( userName As String, password As String )
public: [ObsoleteAttribute(L"Use method 'Auth' instead.")] void Authenticate( String^ userName, String^ password )
[<ObsoleteAttribute("Use method 'Auth' instead.")>] member Authenticate : userName : string * password : string -> unit
Exceptions
Exception | Condition |
---|---|
ObjectDisposedException | Is raised when this object is disposed and this method is accessed. |
InvalidOperationException | Is raised when SMTP client is not connected or is already authenticated. |
ArgumentNullException | Is raised when userName is null. |
SMTP_ClientException | Is raised when SMTP server returns error. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119