public bool Authenticate(NetworkCredential credentials, SaslMechanics mechanic = (SaslMechanics)0x0000) { var authenticator = new SmtpAuthenticator(this); if (mechanic != 0x0000) { IsAuthenticated = authenticator.Authenticate(credentials, mechanic); return(IsAuthenticated); } IsAuthenticated = authenticator.CanAuthenticate ? authenticator.Authenticate(credentials) : InvokeManualSaslAuthenticationRequired(credentials, this); return(IsAuthenticated); }
public bool AuthenticateXOAuth(string key) { IsAuthenticated = new SmtpAuthenticator(this).AuthenticateXOAuth(key); return IsAuthenticated; }
public bool Authenticate(NetworkCredential credentials, SaslMechanics mechanic = (SaslMechanics) 0x0000) { var authenticator = new SmtpAuthenticator(this); if (mechanic != 0x0000) { IsAuthenticated = authenticator.Authenticate(credentials, mechanic); return IsAuthenticated; } IsAuthenticated = authenticator.CanAuthenticate ? authenticator.Authenticate(credentials) : InvokeManualSaslAuthenticationRequired(credentials, this); return IsAuthenticated; }
public bool AuthenticateXOAuth(string key) { IsAuthenticated = new SmtpAuthenticator(this).AuthenticateXOAuth(key); return(IsAuthenticated); }