-
Notifications
You must be signed in to change notification settings - Fork 441
Closed
Description
i had send some excel files, but sending them in one email was giving error of size > 4 MB. So i compressed them and now the size was 3.47 MB but still it is not sending them. Tried the MSGraphProtocol with beta api_version but still the same. Any help where i maybe doing wrong??
mail.send()
File "C:\Users\pxil\anaconda3\lib\site-packages\O365\message.py", line 694, in send
response = self.con.post(url, data=data)
File "C:\Users\pxil\anaconda3\lib\site-packages\O365\connection.py", line 794, in post
return self.oauth_request(url, 'post', data=data, **kwargs)
File "C:\Users\pxil\anaconda3\lib\site-packages\O365\connection.py", line 772, in oauth_request
return self._internal_request(self.session, url, method, **kwargs)
File "C:\Users\pxil\anaconda3\lib\site-packages\O365\connection.py", line 734, in _internal_request
raise HTTPError('{} | Error Message: {}'.format(e.args[0], error_message), response=response) from None
requests.exceptions.HTTPError: 413 Client Error: Request Entity Too Large for url: https://graph.microsoft.com/v1.0/me/sendMail | Error Message: The maximum request length supported is 4MB.
Metadata
Metadata
Assignees
Labels
No labels