What is the recommended way of sending emails with gmail and python?
There are a lot of SO threads, but most are old and also smtp with username & password is n
thanks, @Guillame, @apadana. @Guillaume's answer worked great for me in Win/Python3.7, but with one change. For the all the 3 print statements, I had to remove the "f", as in change:
print (f'An error occurred: {error}')
to
print ('An error occurred: {error}')
Also look at the first part of @apandana's answer to get your client_secret.json file. That was more clearer for me.