sendCommand method

Future<SmtpResponse> sendCommand(
  1. SmtpCommand command
)

Sends the command to the server

Implementation

Future<SmtpResponse> sendCommand(SmtpCommand command) {
  final text = command.command;
  _currentCommand = command;
  _write(() => writeText(text, command), command);

  return command.completer.future;
}