Recently Google disabled their "legacy" upload capability, so I was forced to change our applications to use the Google users().messages().send api.
However it doesn't work on anything over 5mb. I've seen one post on the www about how to do it in PHP, but nothing in Python.
Here's my existing code:
http = #My login routine
service = build('gmail','v1',http=http)
email = {'raw':base64.urlsafe_b64encode(message)}
reply = (service.users().messages().send(userId=user,body=email).execute())
Google has extensive documentation, but NOT on the specific ability to send large emails in Python. In fact at this page:
https://developers.google.com/gmail/api/v1/reference/users/messages/send
They talk about using the base API to send messages as large as 35MB, but that simply doesn't work. I receive a "ResponseNotReady()" error.
I've been reading about chunked uploads, resumable uploads, but nothing has come to fruition.
Any thoughts out there?