original_string: public function data($data)
      {
          // Ensure recipients have been set
          if ($this->_rcpt !== true) {
              /**
               * @see Zend_Mail_Protocol_Exception
               */
              // require_once 'Zend/Mail/Protocol/Exception.php';
              throw new Zend_Mail_Protocol_Exception('No recipient forward path has been supplied');
          }
  
          $this->_send('DATA');
          $this->_expect(354, 120); // Timeout set for 2 minutes as per RFC 2821 4.5.3.2
  
          foreach (explode(Zend_Mime::LINEEND, $data) as $line) {
              if (strpos($line, '.') === 0) {
                  // Escape lines prefixed with a '.'
                  $line = '.' . $line;
              }
              $this->_send($line);
          }
  
          $this->_send('.');
          $this->_expect(250, 600); // Timeout set for 10 minutes as per RFC 2821 4.5.3.2
          $this->_data = true;
      }
code: public function data($data)
      {
          // Ensure recipients have been set
          if ($this->_rcpt !== true) {
              /**
               * @see Zend_Mail_Protocol_Exception
               */
              // require_once 'Zend/Mail/Protocol/Exception.php';
              throw new Zend_Mail_Protocol_Exception('No recipient forward path has been supplied');
          }
  
          $this->_send('DATA');
          $this->_expect(354, 120); // Timeout set for 2 minutes as per RFC 2821 4.5.3.2
  
          foreach (explode(Zend_Mime::LINEEND, $data) as $line) {
              if (strpos($line, '.') === 0) {
                  // Escape lines prefixed with a '.'
                  $line = '.' . $line;
              }
              $this->_send($line);
          }
  
          $this->_send('.');
          $this->_expect(250, 600); // Timeout set for 10 minutes as per RFC 2821 4.5.3.2
          $this->_data = true;
      }
code_tokens: public function data ( $ data ) { // Ensure recipients have been set if ( $ this -> _rcpt !== true ) { /**
               * @see Zend_Mail_Protocol_Exception
               */ // require_once 'Zend/Mail/Protocol/Exception.php'; throw new Zend_Mail_Protocol_Exception ( 'No recipient forward path has been supplied' ) ; } $ this -> _send ( 'DATA' ) ; $ this -> _expect ( 354 , 120 ) ; // Timeout set for 2 minutes as per RFC 2821 4.5.3.2 foreach ( explode ( Zend_Mime :: LINEEND , $ data ) as $ line ) { if ( strpos ( $ line , '.' ) === 0 ) { // Escape lines prefixed with a '.' $ line = '.' . $ line ; } $ this -> _send ( $ line ) ; } $ this -> _send ( '.' ) ; $ this -> _expect ( 250 , 600 ) ; // Timeout set for 10 minutes as per RFC 2821 4.5.3.2 $ this -> _data = true ; }
docstring: Issues DATA command
  
  @param  string $data
  @throws Zend_Mail_Protocol_Exception
  @return void
docstring_tokens: Issues DATA command