Open
Description
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.
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.