Zend_Mail::getDefaultFrom PHP Method

getDefaultFrom() public static method

Returns the default sender of the mail
public static getDefaultFrom ( ) : null | array
return null | array Null if none was set.
    public static function getDefaultFrom()
    {
        return self::$_defaultFrom;
    }

Usage Example

Example #1
0
 protected function setUp()
 {
     // backup static vars
     $this->_oldTransport = Zend_Mail::getDefaultTransport();
     $this->_oldFrom = Zend_Mail::getDefaultFrom();
     // set mail transport to testing
     Zend_Mail::setDefaultTransport($this->_transport = new Zle_Mail_Transport_Testing());
 }
All Usage Examples Of Zend_Mail::getDefaultFrom