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