fix: help should send cc on email

This commit is contained in:
Andras Bacsai
2023-09-12 14:51:35 +02:00
parent 8ba18b2ce1
commit 9baf0161c7
3 changed files with 34 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ class Help extends Component
]
);
$mail->subject("[HELP - {$subscriptionType}]: {$this->subject}");
send_user_an_email($mail, 'hi@coollabs.io');
send_user_an_email($mail, 'hi@coollabs.io', auth()->user()?->email);
$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);