src/net/mail/SMTPMailer.php
private function writeData($data) {
        $count = fwrite($this->connection, $data.EOL_WINDOWS, strlen($data)+2);

        if ($count != strlen($data)+2)
            throw new RuntimeException('Error writing to socket, length of data: '.(strlen($data)+2).', bytes written: '.$count.NL.'data: '.$data.NL.NL.'SMTP transfer log:'.NL.'------------------'.NL.$this->logBuffer);

        $this->logSentData($data);
    }
private function writeData($data) {
        $count = fwrite($this->connection, $data.EOL_WINDOWS, strlen($data)+2);

        if ($count != strlen($data)+2)
            throw new RuntimeException('Error writing to socket, length of data: '.(strlen($data)+2).', bytes written: '.$count.NL.'data: '.$data.NL.NL.'SMTP transfer log:'.NL.'------------------'.NL.$this->logBuffer);

        $this->logSentData($data);
    }
private function writeData ( $ data ) { $ count = fwrite ( $ this -> connection , $ data . EOL_WINDOWS , strlen ( $ data ) + 2 ) ; if ( $ count != strlen ( $ data ) + 2 ) throw new RuntimeException ( 'Error writing to socket, length of data: ' . ( strlen ( $ data ) + 2 ) . ', bytes written: ' . $ count . NL . 'data: ' . $ data . NL . NL . 'SMTP transfer log:' . NL . '------------------' . NL . $ this -> logBuffer ) ; $ this -> logSentData ( $ data ) ; }
Write data into the open socket.

@param string $data
Write data into the open socket .