protected function getFromEmail()
    {
        if (!$this->fromAddress) {
            return null;
        }

        if ($this->fromName) {
            return array($this->fromAddress => $this->fromName);
        }

        return $this->fromAddress;
    }