protected void send(String line) {
        if (socket == null)
            throw new SMTPDisconnectedException("Not connected in the first place.");
        try {
            if (write == null)
                write = new OutputStreamWriter(socket.getOutputStream());
            write.write(line);
            if (debug) {
                java.lang.System.out.print('>');
                java.lang.System.out.print(line);
            }
            write.flush();
        } catch (IOException e) {
            throw new SMTPException(e);
        }
    }