Redaxscript\Mailer::_createFromString PHP Method

_createFromString() protected method

create the recipient contents
Since: 2.0.0
protected _createFromString ( )
    protected function _createFromString()
    {
        /* create from string */
        $from = current($this->_fromArray);
        $fromName = key($this->_fromArray);
        /* from name fallback */
        if (!$fromName) {
            $fromName = $from;
        }
        $this->_fromString = $fromName . ' <' . $from . '>';
    }