login method

  1. @Deprecated('Please use authenticate() instead.')
Future<SmtpResponse> login(
  1. String name,
  2. String password, {
  3. AuthMechanism authMechanism = AuthMechanism.plain,
})

Signs in the user with the given name and password.

Implementation

@Deprecated('Please use authenticate() instead.')
Future<SmtpResponse> login(String name, String password,
    {AuthMechanism authMechanism = AuthMechanism.plain}) {
  return authenticate(name, password, authMechanism);
}