fuel/fuel/packages/email/classes/email/driver/sendmail.php
protected function _send()
	{
		// Build the message
		$message = $this->build_message();

		// Open a connection
		$return_path = ($this->config['return_path'] !== false) ? $this->config['return_path'] : $this->config['from']['email'];
		$handle = @popen($this->config['sendmail_path'] . " -oi -f ".$return_path." -t", 'w');

		// No connection?
		if(! is_resource($handle))
		{
			throw new \SendmailConnectionException('Could not open a sendmail connection at: '.$this->config['sendmail_path']);
		}

		// Send the headers
		fputs($handle, $message['header']);

		// Send the body
		fputs($handle, $message['body']);

		if(pclose($handle) === -1)
		{
			throw new \SendmailFailedException('Failed sending email through sendmail.');
		}

		return true;
	}
protected function _send()
	{
		// Build the message
		$message = $this->build_message();

		// Open a connection
		$return_path = ($this->config['return_path'] !== false) ? $this->config['return_path'] : $this->config['from']['email'];
		$handle = @popen($this->config['sendmail_path'] . " -oi -f ".$return_path." -t", 'w');

		// No connection?
		if(! is_resource($handle))
		{
			throw new \SendmailConnectionException('Could not open a sendmail connection at: '.$this->config['sendmail_path']);
		}

		// Send the headers
		fputs($handle, $message['header']);

		// Send the body
		fputs($handle, $message['body']);

		if(pclose($handle) === -1)
		{
			throw new \SendmailFailedException('Failed sending email through sendmail.');
		}

		return true;
	}
protected function _send ( ) { // Build the message $ message = $ this -> build_message ( ) ; // Open a connection $ return_path = ( $ this -> config [ 'return_path' ] !== false ) ? $ this -> config [ 'return_path' ] : $ this -> config [ 'from' ] [ 'email' ] ; $ handle = @ popen ( $ this -> config [ 'sendmail_path' ] . " -oi -f " . $ return_path . " -t" , 'w' ) ; // No connection? if ( ! is_resource ( $ handle ) ) { throw new \ SendmailConnectionException ( 'Could not open a sendmail connection at: ' . $ this -> config [ 'sendmail_path' ] ) ; } // Send the headers fputs ( $ handle , $ message [ 'header' ] ) ; // Send the body fputs ( $ handle , $ message [ 'body' ] ) ; if ( pclose ( $ handle ) === - 1 ) { throw new \ SendmailFailedException ( 'Failed sending email through sendmail.' ) ; } return true ; }
Initalted all needed for Sendmail mailing.

@throws \SendmailConnectionException Could not open a sendmail connection
@throws \SendmailFailedException     Failed sending email through sendmail

@return  bool    Success boolean
Initalted all needed for Sendmail mailing .