From 81f7a65dd53d5688f26de4f1fd2e4d04c41682bc Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 14 Sep 2023 18:41:21 +0200 Subject: [PATCH] fix: help --- app/Http/Livewire/Help.php | 4 ++-- bootstrap/helpers/shared.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Livewire/Help.php b/app/Http/Livewire/Help.php index bfdb875b3..8edd001b4 100644 --- a/app/Http/Livewire/Help.php +++ b/app/Http/Livewire/Help.php @@ -28,7 +28,7 @@ class Help extends Component public function submit() { try { - $this->rateLimit(1, 60); + // $this->rateLimit(1, 1); $this->validate(); $subscriptionType = auth()->user()?->subscription?->type() ?? 'Free'; $debug = "Route: {$this->path}"; @@ -41,7 +41,7 @@ class Help extends Component ] ); $mail->subject("[HELP - {$subscriptionType}]: {$this->subject}"); - send_user_an_email($mail, auth()->user()?->email, 'hi@coollabs.io'); + send_user_an_email($mail, auth()->user()?->email, 'hi@coollabs.io'); $this->emit('success', 'Your message has been sent successfully. We will get in touch with you as soon as possible.'); } catch (\Throwable $e) { return general_error_handler($e, $this); diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index ad449e3c7..5c504b243 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -276,6 +276,7 @@ function send_user_an_email(MailMessage $mail, string $email, ?string $cc = null [], fn (Message $message) => $message ->to($email) + ->replyTo($email) ->cc($cc) ->subject($mail->subject) ->html((string) $mail->render())