Reputation: 17
Emails are not triggering when the request length exceeds the 4MB limit. In my case i have attachments of 10 which are in KB. Total size of all attachments comes close to 4.1MB. In this case we cant use Upload session as minimum size of attachment should be 3MB. How do we increase the request size of graph API? Is there any solution?
Upvotes: 0
Views: 708
Reputation: 2464
You can use attachment:CreateUploadsession API call, using this approach you can attach a file if the file size is between 3 MB and 150 MB. But please be aware that Exchange Online lets administrators customize the message size limit for Microsoft 365 mailboxes, including any message attachments. By default, this message size limit is 35 MB.
Upvotes: 0
Reputation: 101
Have you considered zipping the attachments into one folder and then creating an upload session? Please give that a try and share your experience
Upvotes: 1