public function getFrom()
    {
        // Gather possible sources of a from address
        $sources[] = $this->getBaseOrganization();
        if ($this->getBaseOrganizationId() != $this->getCurrentOrganizationId()) {
            $sources[] = $this->getCurrentOrganization();
        }
        $sources[] = $this->project;

        foreach ($sources as $source) {
            if ($from = $source->getFrom()) {
                return $from;
            }
        }

        // We really don't like it, but sometimes the only way to get a from address.
        return $this->getEmailAddress();
    }
public function getFrom()
    {
        // Gather possible sources of a from address
        $sources[] = $this->getBaseOrganization();
        if ($this->getBaseOrganizationId() != $this->getCurrentOrganizationId()) {
            $sources[] = $this->getCurrentOrganization();
        }
        $sources[] = $this->project;

        foreach ($sources as $source) {
            if ($from = $source->getFrom()) {
                return $from;
            }
        }

        // We really don't like it, but sometimes the only way to get a from address.
        return $this->getEmailAddress();
    }
public function getFrom ( ) { // Gather possible sources of a from address $ sources [ ] = $ this -> getBaseOrganization ( ) ; if ( $ this -> getBaseOrganizationId ( ) != $ this -> getCurrentOrganizationId ( ) ) { $ sources [ ] = $ this -> getCurrentOrganization ( ) ; } $ sources [ ] = $ this -> project ; foreach ( $ sources as $ source ) { if ( $ from = $ source -> getFrom ( ) ) { return $ from ; } } // We really don't like it, but sometimes the only way to get a from address. return $ this -> getEmailAddress ( ) ; }
Returns the from address

@return string E-Mail address
Returns the from address