private function smtpConfiguration($host, $port) { $preferencesService = $this->container->get('system_preferences_service'); $preferencesService->SMTPHost = strip_tags($host); $preferencesService->SMTPPort = $port; }