'any', 'requestData' => [] ]; } public function handler() { $mailSender = MailSender::getInstance(); $mailSender->setConnectionSettings( Controller::request('smtp-host'), Controller::request('smtp-port'), Controller::request('smtp-user'), Controller::request('smtp-password'), Controller::request('no-reply-email') ); if($mailSender->isConnected()) { Response::respondSuccess(); } else { throw new Exception(ERRORS::SMTP_CONNECTION); } } }