-
Notifications
You must be signed in to change notification settings - Fork 441
Description
On rare occasion, I get this error message:
413 Client Error: Request Entity Too Large for url: https://graph.microsoft.com/v1.0/users/username@domain.com/sendMail
Essentially, I know that the email's body that it's trying to send is pretty large (it sends me an html comparison/diff chart of updates and when the page I'm scraping has significant changes, the email can get fairly large). The largest email that I've seen actually come through is about 1.5 MB after you include headers (admittedly insignificant in the grand scheme of things).
This is a message without attachments, that 1.5 MB is simply in the body of the (html formatted) email as text.
I'm sorry if this isn't exactly a python-O365 question, but I cannot find any answers on the MS docs either-- I can only see that emails are limited to 4MB attachments with graph API 1.0, and if that limit applies to emails as well, I don't believe I'd ever be that large anyway.