laravel-gmail icon indicating copy to clipboard operation
laravel-gmail copied to clipboard

Attachment issues

Open ChrisSantiago82 opened this issue 3 years ago • 0 comments

I'm having a fight with attachments. I'm sure I'm doing something wrong.

I'm trying to get all attachments of all mails.

If I do this: `$messages = LaravelGmail::message()->preload()->all();'

And then if I loop and use the "hasAttachments" it never is true, even if there are a lots of files: foreach ($messages as $message) { if ($message->hasAttachments()) { } }

If I get the emails with this with hasAttachment: $messages = LaravelGmail::message()->hasAttachment()->preload()->all(); I'm getting an "Request is missing required authentication credential" image

ChrisSantiago82 avatar Dec 31 '21 12:12 ChrisSantiago82