api sendmail limitations

dashandwerk.net (Frank Lehmann) 0 Reputation points
2023-04-07T06:53:56.9433333+00:00

Hi, i am sending mails with api sendmail. When i attach one file the request is ok ! When attaching 2 files, or a bigger file (> 1MB) the request is broken. {"error":{"code":"ErrorInvalidParameter","message":"The value of the parameter 'Message' is empty."}} When copying the request to the graph explorer the request is OK ! Why is the request broken when doing a web api request and why is the request ok when using graph explrer ?

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,891 Reputation points
    2023-04-07T08:25:18.0466667+00:00

    Hello @dashandwerk.net (Frank Lehmann),

    Thanks for reaching out!

    If you're attaching a file under 3 MB, you can add the file attachment to a message. If you're attaching a file between 3 MB and 150 MB to a message, you can create an upload session and iteratively upload ranges of the file to attach it.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.