public function setFromToDefaultFrom() {
        $from = self::getDefaultFrom();
        if($from === null) {
            // require_once 'Zend/Mail/Exception.php';
            throw new Zend_Mail_Exception(
                'No default From Address set to use');
        }

        $this->setFrom($from['email'], $from['name']);

        return $this;
    }
public function setFromToDefaultFrom() {
        $from = self::getDefaultFrom();
        if($from === null) {
            // require_once 'Zend/Mail/Exception.php';
            throw new Zend_Mail_Exception(
                'No default From Address set to use');
        }

        $this->setFrom($from['email'], $from['name']);

        return $this;
    }
public function setFromToDefaultFrom ( ) { $ from = self :: getDefaultFrom ( ) ; if ( $ from === null ) { // require_once 'Zend/Mail/Exception.php'; throw new Zend_Mail_Exception ( 'No default From Address set to use' ) ; } $ this -> setFrom ( $ from [ 'email' ] , $ from [ 'name' ] ) ; return $ this ; }
Sets From-name and -email based on the defaults

@return Zend_Mail Provides fluent interface
Sets From - name and - email based on the defaults