google / gmail-oauth2-tools

Tools and sample code for authenticating to Gmail with OAuth2
Apache License 2.0
405 stars 211 forks source link

Make sendgmail work with only gmail.send scope #69

Closed favonia closed 8 months ago

favonia commented 8 months ago

Close #32. Pending confirmation that it was not just me being lucky that this has been working for me so far.

TODO

favonia commented 8 months ago

I have (finally) encountered a case where this approach failed to work because Gmail is inserting newlines to the email going out to another server. I wonder how I managed to dodge the problem for so long, but it indicates the issue is still not fixed after these years. (The technical details are quite involved.)