A free open source IT asset/license management system
change to() to cc()
Godfrey M8142ab64f6d2
diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.phpindex f80f16eb32..de5dd8d3dd 100644--- a/app/Listeners/CheckoutableListener.php+++ b/app/Listeners/CheckoutableListener.php@@ -39,7 +39,7 @@ use Exception;use Illuminate\Support\Facades\Log;use Illuminate\Support\Str;use Osama\LaravelTeamsNotification\TeamsNotification;-+use Symfony\Component\Mime\Email;class CheckoutableListener{private array $skipNotificationsFor = [@@ -108,7 +108,7 @@ class CheckoutableListenerif (!empty($cc)) {try {$ccMail = (clone $mailable)->locale(Setting::getSettings()->locale);- Mail::to(array_flatten($cc))->send($ccMail);+ Mail::cc(array_flatten($cc))->send($ccMail);} catch (ClientException $e) {Log::debug("Exception caught during checkout email: " . $e->getMessage());} catch (Exception $e) {@@ -210,7 +210,7 @@ class CheckoutableListenerif (!empty($cc)) {try {$ccMail = (clone $mailable)->locale(Setting::getSettings()->locale);- Mail::to(array_flatten($cc))->send($ccMail);+ Mail::cc(array_flatten($cc))->send($ccMail);} catch (ClientException $e) {Log::debug("Exception caught during checkin email: " . $e->getMessage());} catch (Exception $e) {