public function reset()
    {
        $this->_to = [];
        $this->_from = [];
        $this->_sender = [];
        $this->_replyTo = [];
        $this->_readReceipt = [];
        $this->_returnPath = [];
        $this->_cc = [];
        $this->_bcc = [];
        $this->_messageId = true;
        $this->_subject = '';
        $this->_headers = [];
        $this->_textMessage = '';
        $this->_htmlMessage = '';
        $this->_message = [];
        $this->_emailFormat = 'text';
        $this->_transport = null;
        $this->_priority = null;
        $this->charset = 'utf-8';
        $this->headerCharset = null;
        $this->transferEncoding = null;
        $this->_attachments = [];
        $this->_profile = [];
        $this->_emailPattern = self::EMAIL_PATTERN;

        $this->viewBuilder()->setLayout('default');
        $this->viewBuilder()->setTemplate('');
        $this->viewBuilder()->setClassName('Cake\View\View');
        $this->viewVars = [];
        $this->viewBuilder()->setTheme(false);
        $this->viewBuilder()->setHelpers(['Html'], false);

        return $this;
    }
public function reset()
    {
        $this->_to = [];
        $this->_from = [];
        $this->_sender = [];
        $this->_replyTo = [];
        $this->_readReceipt = [];
        $this->_returnPath = [];
        $this->_cc = [];
        $this->_bcc = [];
        $this->_messageId = true;
        $this->_subject = '';
        $this->_headers = [];
        $this->_textMessage = '';
        $this->_htmlMessage = '';
        $this->_message = [];
        $this->_emailFormat = 'text';
        $this->_transport = null;
        $this->_priority = null;
        $this->charset = 'utf-8';
        $this->headerCharset = null;
        $this->transferEncoding = null;
        $this->_attachments = [];
        $this->_profile = [];
        $this->_emailPattern = self::EMAIL_PATTERN;

        $this->viewBuilder()->setLayout('default');
        $this->viewBuilder()->setTemplate('');
        $this->viewBuilder()->setClassName('Cake\View\View');
        $this->viewVars = [];
        $this->viewBuilder()->setTheme(false);
        $this->viewBuilder()->setHelpers(['Html'], false);

        return $this;
    }
public function reset ( ) { $ this -> _to = [ ] ; $ this -> _from = [ ] ; $ this -> _sender = [ ] ; $ this -> _replyTo = [ ] ; $ this -> _readReceipt = [ ] ; $ this -> _returnPath = [ ] ; $ this -> _cc = [ ] ; $ this -> _bcc = [ ] ; $ this -> _messageId = true ; $ this -> _subject = '' ; $ this -> _headers = [ ] ; $ this -> _textMessage = '' ; $ this -> _htmlMessage = '' ; $ this -> _message = [ ] ; $ this -> _emailFormat = 'text' ; $ this -> _transport = null ; $ this -> _priority = null ; $ this -> charset = 'utf-8' ; $ this -> headerCharset = null ; $ this -> transferEncoding = null ; $ this -> _attachments = [ ] ; $ this -> _profile = [ ] ; $ this -> _emailPattern = self :: EMAIL_PATTERN ; $ this -> viewBuilder ( ) -> setLayout ( 'default' ) ; $ this -> viewBuilder ( ) -> setTemplate ( '' ) ; $ this -> viewBuilder ( ) -> setClassName ( 'Cake\View\View' ) ; $ this -> viewVars = [ ] ; $ this -> viewBuilder ( ) -> setTheme ( false ) ; $ this -> viewBuilder ( ) -> setHelpers ( [ 'Html' ] , false ) ; return $ this ; }
Reset all the internal variables to be able to send out a new email.

@return $this
Reset all the internal variables to be able to send out a new email .