1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #6110 from turbo124/v5-develop

Fixes for Gmail BCC
This commit is contained in:
David Bomba 2021-06-23 08:50:18 +10:00 committed by GitHub
commit d98bf747f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{