From d05174286d4eff8c5eda35151bb8e0feec639ee8 Mon Sep 17 00:00:00 2001 From: poskrobkaA Date: Tue, 11 Jun 2024 11:21:09 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D1=81=D0=BB=D0=BE=D0=B2=D0=B8=D1=8F=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B7=D0=BC=D0=B5=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20-=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=D0=B8=20email=20=D0=B0=D0=B4?= =?UTF-8?q?=D0=BC=D0=B8=D0=BD=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/PagesController.php | 4 ++-- config/mail.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 77e8f60..22f32fe 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -23,8 +23,8 @@ class PagesController extends Controller public function form_feedback(RequestSendAdmin $request){ $all = $request->all(); - - Mail::to(env('EMAIL_ADMIN'))->send(new MailAdminy($all)); + // Mail::to(env('EMAIL_ADMIN'))->send(new MailAdminy($all)); + Mail::to(config('mail.emailAdmin'))->send(new MailAdminy($all)); return redirect()->back()->with('Сообщение было успешно отправлено и будет обработано'); } diff --git a/config/mail.php b/config/mail.php index 534395a..95911a2 100644 --- a/config/mail.php +++ b/config/mail.php @@ -115,4 +115,5 @@ return [ ], ], + 'emailAdmin' => env('EMAIL_ADMIN', 'info1@rekamore.su'), ]; -- 1.7.10.4