Implementation of sendRaw() method.