From 6af1ac93738796e7ca984fab0a59b7b0bae83fb1 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 23 Jun 2021 08:50:02 +1000 Subject: [PATCH] Fixes for Gmail BCC --- app/Helpers/Mail/GmailTransport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Helpers/Mail/GmailTransport.php b/app/Helpers/Mail/GmailTransport.php index c4c8e9740175..e380a6c1f7ca 100644 --- a/app/Helpers/Mail/GmailTransport.php +++ b/app/Helpers/Mail/GmailTransport.php @@ -46,7 +46,7 @@ class GmailTransport extends Transport $this->gmail = null; $this->gmail = new Mail; - nlog($message->getBcc()); + nlog(array_keys($message->getBcc())); /*We should nest the token in the message and then discard it as needed*/ $token = $message->getHeaders()->get('GmailToken')->getValue(); @@ -62,7 +62,7 @@ class GmailTransport extends Transport $this->gmail->message($message->getBody()); $this->gmail->cc($message->getCc()); - $this->gmail->bcc($message->getBcc()); + $this->gmail->bcc(array_keys($message->getBcc())); foreach ($message->getChildren() as $child) {