Here is the approach I suggest you take to avoid any issues:

  1. Create a draft email
  2. Upload any attachment <3MB via the add attachment endpoint
  3. Upload any attachment >3MB via the large upload endpoint
  4. Send the email endpoint

With that approach instead of trying to upload the small attachments with the draft email creation, you’ll avoid random failures when the total size of base64 encoded small attachments exceeds the maximum size of 4MB per request on Microsoft Graph.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top