lib/classes/Swift/Message.php
protected function saveMessage()
    {
        $this->savedMessage = ['headers' => []];
        $this->savedMessage['body'] = $this->getBody();
        $this->savedMessage['children'] = $this->getChildren();
        if (count($this->savedMessage['children']) > 0 && '' != $this->getBody()) {
            $this->setChildren(array_merge([$this->becomeMimePart()], $this->savedMessage['children']));
            $this->setBody('');
        }
    }
protected function saveMessage()
    {
        $this->savedMessage = ['headers' => []];
        $this->savedMessage['body'] = $this->getBody();
        $this->savedMessage['children'] = $this->getChildren();
        if (count($this->savedMessage['children']) > 0 && '' != $this->getBody()) {
            $this->setChildren(array_merge([$this->becomeMimePart()], $this->savedMessage['children']));
            $this->setBody('');
        }
    }
protected function saveMessage ( ) { $ this -> savedMessage = [ 'headers' => [ ] ] ; $ this -> savedMessage [ 'body' ] = $ this -> getBody ( ) ; $ this -> savedMessage [ 'children' ] = $ this -> getChildren ( ) ; if ( count ( $ this -> savedMessage [ 'children' ] ) > 0 && '' != $ this -> getBody ( ) ) { $ this -> setChildren ( array_merge ( [ $ this -> becomeMimePart ( ) ] , $ this -> savedMessage [ 'children' ] ) ) ; $ this -> setBody ( '' ) ; } }
save the message before any signature is applied.
save the message before any signature is applied .