public function getFrom(Message $message = null) 
    {
        $from = $message === null ? null : $message->getFrom();
        if (!$from) {
            $from = $this->getOption(self::CONFIG_DEFAULT_SENDER);
        }
        return $from;
    }
public function getFrom(Message $message = null) 
    {
        $from = $message === null ? null : $message->getFrom();
        if (!$from) {
            $from = $this->getOption(self::CONFIG_DEFAULT_SENDER);
        }
        return $from;
    }
public function getFrom ( Message $ message = null ) { $ from = $ message === null ? null : $ message -> getFrom ( ) ; if ( ! $ from ) { $ from = $ this -> getOption ( self :: CONFIG_DEFAULT_SENDER ) ; } return $ from ; }
Get a "From" address. If it was not specified for message then value will be retrieved from config.
@param Message $message (optional)
@return string
Get a From address . If it was not specified for message then value will be retrieved from config .