Method justSend

@access protected

@param  string $body

@return void
491193
protected function justSend( string$body=null )
	{
		$this->body= $body;

		if( $length= strlen($body) )
		{
			$this->header( 'Content-Length', $length );
		}

		$this->header( 'Connection', 'close' );

		$this->sendHeader();

		$this->sendBody($body);
	}
855565
public function setBody($body, $html = false)
    {
        if ($html) {
            $this->body['text/html'] = $body;
            $body = strip_tags($body);
        }
        
        $this->body['text/plain'] = $body;
        
        return $this;
    }
259836
protected function setBody($body = null)
    {
        parent::setBody($body);

        if (is_array($body) || is_object($body)) {
            $this->post = (array) $body;
        } else {
            $this->post = [];
        }
    }
445449
public function body($body, $html = null)
    {
        if ($html !== null) {
            $this->html($html);
        }

        $this->body = $body;

        return $this;
    }
996875
protected function handleBody($body)
    {
        if ($body instanceof AbstractView) {
            $this->view = $body;
        }

        return parent::handleBody((string) $body);
    }
585036
protected function setBody(StreamInterface $body)
    {
        if ($body instanceof OutputBufferStream && $this->isStale() === false) {
            $body->useGlobally();
        }
        
        $this->body = $body;
    }
857105
public function beforeSend($event = null)
    {
        if (isset($this->stream)) {
            return;
        }
        if (isset($this->controller) && $this->task) {
            if ($this->isInstructable) {
                $this->format = static::FORMAT_JSON;
                $this->data = $this->generateInstructions();
            } else {
                $this->handleFlashStatus();
                if ($this->redirect) {
                    $this->redirect($this->redirect);
                } elseif ($this->refresh) {
                    $this->refresh();
                } else {
                    if (is_null($this->content)) {
                        $this->content = $this->renderContent(true);
                    }
                }
            }
        }
    }
918481
protected function handleError($body)
    {
        $firstMessage = $this->getFirstMessage($body);
        $error = 'An error occurred. Nexmo status code: '.$firstMessage['status'];
        if ($this->hasProperty($firstMessage, 'error-text')) {
            $error = $firstMessage['error-text'];
        }

        $this->throwNotSentException($error, $firstMessage['status']);
    }
887048
protected function MailSend($header, $body)
    {
        $toArr = array();
        foreach ($this->to as $t) {
            $toArr[] = $this->AddrFormat($t);
        }
        $to = implode(', ', $toArr);

        $params = sprintf("-oi -f %s", $this->Sender);
        if ($this->Sender != '' && strlen(ini_get('safe_mode')) < 1) {
            $old_from = ini_get('sendmail_from');
            ini_set('sendmail_from', $this->Sender);
            if ($this->SingleTo === true && count($toArr) > 1) {
                foreach ($toArr as $key => $val) {
                    $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);
                }
            } else {
                $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);
            }
        } else {
            if ($this->SingleTo === true && count($toArr) > 1) {
                foreach ($toArr as $key => $val) {
                    $rt = @mail($val, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header, $params);
                }
            } else {
                $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header);
            }
        }
        if (isset($old_from)) {
            ini_set('sendmail_from', $old_from);
        }
        if (!$rt) {
            throw new phpmailerException($this->Lang('instantiate'), self::STOP_CRITICAL);
        }
        return true;
    }
433504
public function setBody($body)
    {
        if ($body !== false && (empty($body) || !is_array($body) || (count($body) % 2) !== 0)) {
            throw new InvalidResponseException($this->command, $body);
        }
        parent::setBody($body);
    }
11375
public function setPostBody ($body)
    {
        if ($this->_sent) {
            throw new CAS_OutOfSequenceException(
                'Request has already been sent cannot '.__METHOD__
            );
        }
        if (!$this->isPost) {
            throw new CAS_OutOfSequenceException(
                'Cannot add a POST body to a GET request, use makePost() first.'
            );
        }

        $this->postBody = $body;
    }
509153
public function setBody($body)
    {
        $this->body = empty($body) ?
            null :
            Stream::factory($body);
    }
1295082
public function saveMessageInSent($header, $body) {
        return imap_append($this->imap, $this->mailbox . $this->getSent(), $header . "\r\n" . $body . "\r\n", "\\Seen");
    }
491840
public function setBody(Body $body)
    {
        $this->body = $body;
        $this->setAllHeaders($body->getHeaders());
        $this->setStatus($body->getStatusCode());

        return $this;
    }
1096123
public function publish(string $body, array $headers = [], int $delay = 0, AmqpStamp $amqpStamp = null): void
    {
        if (0 !== $delay) {
            $this->publishWithDelay($body, $headers, $delay, $amqpStamp);

            return;
        }

        if ($this->shouldSetup()) {
            $this->setup();
        }

        $this->publishOnExchange(
            $this->exchange(),
            $body,
            (null !== $amqpStamp ? $amqpStamp->getRoutingKey() : null) ?? $this->getDefaultPublishRoutingKey(),
            [
                'headers' => $headers,
            ],
            $amqpStamp
        );
    }
629959
public function perform($action, $table, $body = [], array $params = [])
    {
        $request = $this->db->getQueryBuilder()->perform($action, $table, $body, $params);
        $this->setRequest($request);

        return $this->send();
    }
1056665
private function write($body) {
    if (!$this->file_handle) {
      return false;
    }

      $content = json_encode($body);
    $content.= "\n";

    return fwrite($this->file_handle, $content) == strlen($content);
  }