'', ]; /** * Get configuration values to activate prefix * * @return array Configuration values needed to activate prefix */ public function getConfigurationValues() { $configurationValues = $this->configurationValues; $configurationValues['MAIL/transport_sendmail_command'] = $this->getSendmailPath(); return $configurationValues; } /** * Check if sendmail path if set * * @return bool TRUE if sendmail path if set */ public function isAvailable() { return !empty($this->getSendmailPath()); } /** * Path where executable was found * * @return string|bool Sendmail path or FALSE if not set */ public function getSendmailPath() { return ini_get('sendmail_path'); } /** * Check is preset is currently active on the system * * @return bool TRUE if preset is active */ public function isActive() { $this->configurationValues['MAIL/transport_sendmail_command'] = $this->getSendmailPath(); return parent::isActive(); } }