*/ public function getSmtpParams(): ?array { $smtpParams = []; $smtpParams['server'] = $this->get('smtpServer'); if ($smtpParams['server']) { $smtpParams['port'] = $this->get('smtpPort'); $smtpParams['server'] = $this->get('smtpServer'); $smtpParams['auth'] = $this->get('smtpAuth'); $smtpParams['security'] = $this->get('smtpSecurity'); if ($this->get('smtpAuth')) { $smtpParams['username'] = $this->get('smtpUsername'); $smtpParams['password'] = $this->get('smtpPassword'); } return $smtpParams; } return null; } }