Skip to content

Size larger than 4 MB even though the zip file size is 3.47 MB. #472

@abhie-lp

Description

@abhie-lp

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions