login method Null safety

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

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);
}