/** * Array of field name => values for sending E-Mail * * @param string $locale * @return array */ public function getMailFields($locale = null) { $org = $this->getBaseOrganization(); $orgResults = $org->getMailFields(); $projResults = $this->project->getMailFields(); $result['bcc'] = $projResults['project_bcc']; $result['email'] = $this->getEmailAddress(); $result['first_name'] = $this->_getVar('user_first_name'); $result['from'] = $this->getFrom(); $result['full_name'] = trim($this->getGenderHello($locale) . ' ' . $this->getFullName()); $result['greeting'] = $this->getGreeting($locale); $result['last_name'] = ltrim($this->_getVar('user_surname_prefix') . ' ') . $this->_getVar('user_last_name'); $result['login_url'] = $orgResults['organization_login_url']; $result['name'] = $this->getFullName(); $result['login_name'] = $this->getLoginName(); $result = $result + $orgResults + $projResults; $result['reset_ask'] = $orgResults['organization_login_url'] . '/index/resetpassword'; $result['reset_in_hours'] = $this->definition->getResetKeyDurationInHours(); $result['reply_to'] = $result['from']; $result['to'] = $result['email']; return $result; }