Skip to content

[Bug]: ErrorMessageSizeExceeded #41

Open
@Wimmie

Description

@Wimmie

What happened?

I tried to send more than 50 MB of attachments. According to the discussion below the endpoint allows a maximum of 4 MB.

https://learn.microsoft.com/en-us/answers/questions/1195604/microsoft-graph-api-request-and-response-max-paylo

How to reproduce the bug

Send a mail with a big or multiple attachments that exceeds 4 MB.

Package Version

1.4.0

PHP Version

8.1.0

Laravel Version

11.23.5

Which operating systems does with happen with?

macOS

Notes

Maybe use createUploadSession when the attachments exceed 4 MB? I also want to take a look in this and create a pull request for this, but I don’t know when.

https://learn.microsoft.com/en-us/graph/outlook-large-attachments

There is a security risk in this, because Mail.ReadWrite permission is required and this allows the user to read all emails of all users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions