This commit is contained in:
2024-12-04 16:28:05 +03:00
parent 0671346ce8
commit 15c801f579
6 changed files with 146 additions and 3 deletions

View File

@ -10,9 +10,11 @@ use kernel\Flash;
use kernel\helpers\Debug;
use kernel\helpers\Files;
use kernel\helpers\RESTClient;
use kernel\helpers\SMTP;
use kernel\modules\module_shop_client\services\ModuleShopClientService;
use kernel\Request;
use kernel\services\ModuleService;
use PHPMailer\PHPMailer\Exception;
class ModuleShopClientController extends AdminController
{
@ -118,4 +120,21 @@ class ModuleShopClientController extends AdminController
$this->redirect('/admin/module_shop_client', 302);
}
/**
* @throws Exception
*/
public function actionAuth(): void
{
$request = new Request();
$address = $request->post("email");
$mail = new SMTP([
'host' => 'smtp.mail.ru',
'port' => 587,
'username' => 'chancellery@itguild.info',
'password' => 'iBdGdxmJk1mnySJYtXc0'
]);
$mail->send($address);
}
}