From 058c9ab04913340e55acd4113ce346498140f139 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 11 Jan 2022 19:17:52 +1100 Subject: [PATCH] Only send payment receipt to a single contact --- app/Services/Payment/SendEmail.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/Payment/SendEmail.php b/app/Services/Payment/SendEmail.php index 978a038df2fe..3544a53c7e65 100644 --- a/app/Services/Payment/SendEmail.php +++ b/app/Services/Payment/SendEmail.php @@ -37,6 +37,8 @@ class SendEmail $this->payment->client->contacts->each(function ($contact) { if ($contact->email) { EmailPayment::dispatchNow($this->payment, $this->payment->company, $contact); + return false; + //11-01-2021 only send payment receipt to the first contact } }); }