How to use Gmail API to send an email in Python

preview_player
Показать описание
In this Python tutorial, we will learn how to send a Gmail email with Gmail API using Python.

Using Gmail API, we can Read and send messages, manage drafts and attachments, search threads and messages, work with labels, setup push notifications, and manage Gmail settings, all in one place.

► Buy Me a Coffee? Your support is much appreciated!
-------------------------------------------------------------------------------------------
☕ Venmo: @Jie-Jenn

► Support my channel so I can continue making free contents
---------------------------------------------------------------------------------------------------------------

#GmailAPI #Python #Gmail
Рекомендации по теме
Комментарии
Автор

After an all-nighter searching the entire internet for help sending a simple damn stupid email via API, i can safely say that it was your video that made it happen. I love you.

waiitwhaat
Автор

Spent so much time googling around .. found your video .. its spot on .. crisp, clear concise .. many thanks!

nikitashahu
Автор

works flawlessly as of april 2022, amazing tutorial!

condacon
Автор

thank you so much. I had no idea how to use this because the examples were so bad>

williamkeating
Автор

best explanation of work with google api i've ever seen!

ДмитрийМитяев-чз
Автор

you literally just saved my life here, thank you very much for this

somboonvivatananukul
Автор

You might consider pointing to earlier videos regarding the creation of the oauth2 credentials since they are a needed step for this tutorial. A new viewer might not know how to do that.

alexk
Автор

Thanks for putting this video together. I used your code in combination with other code I'd found and got email sends to work via python and the API. So a big thumbs up, thanks.

Neurk
Автор

Does it work in production environment???

enterenegry-uhei
Автор

Almost thought this didnt work but I just needed to delete token.json and login again since I changed the SCOPE lol
Thanks for the video, it helped :)

OutlawJackC
Автор

hello I'm new to API and programming, did you write the source code for google.py? if you do. do you have a separate video of this source code?

assasin
Автор

Hie, if you see this. What version of Google module were you using in this? In case you remember, thanks.

shadan
Автор

the verification process is normal? I created an app few seconds but i cant access

paulclouseau
Автор

Hi @Jie Jenn
at @7:51 where you are authorizing through the browser UI. Is this a one time thing? Because I will need to send mails from a container.

cloudsets
Автор

Hey, thanks for the video. I run, it seems there is no issue but the gmail page does not pop up.... Would you know why?

scrapingtool
Автор

I'm not able to figure it out, that the what is the difference between Google module and google module

mananjain
Автор

If I need to send to multiple email in csv, what will replace the "me" in the ` ='me',

olusolaadenekan
Автор

what is in that client_secret.json file?

subhankarchakraborty
Автор

Hey Jie, I get this Error:
FileNotFoundError: [Errno 2] No such file or directory: 'client_secret.json'

That file is in the same directory as the python script so I don't know why it doesnt find it. I dowloaded it from Google and it was originally called credentials.json but changed it's name to suit your script
Any ideas?

lawsherbert
Автор

I wanna ask, i want to get authentication for an email from user input and i want the login page opened from guest mode in chrome? Is there any code to do that? Thank you

boomlaboom