From 922eaefa347da713f7fe734f0aa818e525e2c6c3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 24 May 2021 21:31:52 +1000 Subject: [PATCH] Add Reply TO support messaging --- app/Mail/SupportMessageSent.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/Mail/SupportMessageSent.php b/app/Mail/SupportMessageSent.php index 64877f12a662..b826cf7f42f5 100644 --- a/app/Mail/SupportMessageSent.php +++ b/app/Mail/SupportMessageSent.php @@ -59,12 +59,13 @@ class SupportMessageSent extends Mailable $subject = "Customer MSG {$user->present()->name} - [{$plan} - DB:{$company->db}]"; - return $this->from(config('mail.from.address'), config('mail.from.name')) //todo this needs to be fixed to handle the hosted version - ->subject($subject) - ->markdown('email.support.message', [ - 'message' => $this->message, - 'system_info' => $system_info, - 'laravel_log' => $log_lines, - ]); + return $this->from(config('mail.from.address'), config('mail.from.name')) + ->replyTo($user, $user->present()->name()) + ->subject($subject) + ->markdown('email.support.message', [ + 'message' => $this->message, + 'system_info' => $system_info, + 'laravel_log' => $log_lines, + ]); } }