Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ErrorMessageSizeExceeded #41

Open
Wimmie opened this issue Mar 17, 2025 · 0 comments · May be fixed by #42
Open

[Bug]: ErrorMessageSizeExceeded #41

Wimmie opened this issue Mar 17, 2025 · 0 comments · May be fixed by #42
Labels
bug Something isn't working

Comments

@Wimmie
Copy link

Wimmie commented Mar 17, 2025

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.

@Wimmie Wimmie added the bug Something isn't working label Mar 17, 2025
@Wimmie Wimmie linked a pull request Mar 17, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant