dacastro4 / laravel-gmail

Laravel wrapper for the Gmail API
MIT License
289 stars 133 forks source link

getHeader case sensitive #245

Open uacode opened 1 year ago

uacode commented 1 year ago

Hello, @dacastro4 I received this email .... Received: from 14092732981 named unknown by gmailapi.google.com with HTTPREST; Tue, 24 Jan 2023 12:19:44 -0600 MIME-Version: 1.0 from: Octopus Moving Solutions info@octopuscrates.com Date: Tue, 24 Jan 2023 12:19:44 -0600 To: user@domain.com ....

But parser in getFrom returns null. We can add $this->getHeader('from') in this method.

Or can modify searching in HasHeaders trait if (ucfirst($header->key) === $headerName) {

What is correct? If you need I can push PR.

Thanks!