Access GMail SMTP no apps password and 2fa

  Рет қаралды 9,859

DAIMTO Developer Tips

DAIMTO Developer Tips

Күн бұрын

Пікірлер: 37
@yantech.4249
@yantech.4249 Жыл бұрын
Amazing tips and big thanks
@Voice_dub_Lin
@Voice_dub_Lin Жыл бұрын
would I need to verify the Application in order to get the token refresh to be able to send and reply to emails and read them?
@DaimtoAps
@DaimtoAps Жыл бұрын
you only need to verify the app to get ride of the app not verified warning
@int75
@int75 Жыл бұрын
Excellent content! How can I use the api to send email from a self hosted program?
@DaimtoAps
@DaimtoAps Жыл бұрын
Yes you should be able to do that
@shgharat
@shgharat Жыл бұрын
Where is the code link?
@DaimtoAps
@DaimtoAps Жыл бұрын
I dont think I have put the code live yet.
@karthik448
@karthik448 Жыл бұрын
Hi, would you be able to share a step by step tutorial for setting up a gmail account for being accessed via scripts in python? I'm getting bit lost on the whole oauth2, credentials and token stuff. Thank you
@DaimtoAps
@DaimtoAps Жыл бұрын
You don't need to Setup Gmail at all it's just about creating the credentials JSON file and you should be good to go with the code I have here
@karthik448
@karthik448 Жыл бұрын
@@DaimtoAps Thanks for replying to me. The credentials json is for a service account right? How do we link this account to have read access to an user's gmail inbox? Apologies if all these sound too basic as I'm having trouble on where to start with the whole thing.
@DaimtoAps
@DaimtoAps Жыл бұрын
Do you have Google Workspace?
@karthik448
@karthik448 Жыл бұрын
@@DaimtoAps Yes, I mangaged to get the whole Auth thing working finally. I can now download messages and attachments as well. However now stuck at attempting to forward messages. Seems I can't just get the messages and send them to a new recipient via gmail Api. Even the gmail web app doesn't have an option to bull forward messages so I don't think it will be a straightforward task to do this in a script.
@DaimtoAps
@DaimtoAps Жыл бұрын
A forward is just a send with the body of the message you are forwarding
@shgharat
@shgharat Жыл бұрын
How do I delete emails
@DaimtoAps
@DaimtoAps Жыл бұрын
Your connecting directly to the SMTP server so use the same commands to delete messages.
@surisua16
@surisua16 11 ай бұрын
Hello, dear DAIMTO Developer Tips channel. Is there any way to read emails from Gmail without using domain-wide delegation and OAuth consent screen?
@DaimtoAps
@DaimtoAps 11 ай бұрын
SMTP server with an apps passy
@surisua16
@surisua16 11 ай бұрын
@@DaimtoAps thank you!!
@KanwalKhalid-x9s
@KanwalKhalid-x9s Жыл бұрын
Does it generate token for outlook mail to?
@DaimtoAps
@DaimtoAps Жыл бұрын
no this is Gmail not Microsoft
@KanwalKhalid-x9s
@KanwalKhalid-x9s Жыл бұрын
@@DaimtoAps i want for outlook domain too. can i use microsoft api with this smtp server to send email on user's behalf
@DaimtoAps
@DaimtoAps Жыл бұрын
check the documention its a bit outside of my experience
@KanwalKhalid-x9s
@KanwalKhalid-x9s Жыл бұрын
@@DaimtoAps can you please help me.i got redirect_uri_mismatch error while following your code. i checked url in request and in google console. both are same but still getting same error.
@abdulrafay5711
@abdulrafay5711 2 ай бұрын
Where do I get the token.json file? please reply
@DaimtoAps
@DaimtoAps 2 ай бұрын
Its created when the user authorizes the app
@abdulrafay5711
@abdulrafay5711 2 ай бұрын
@@DaimtoAps I am literally having troubles, please suggest me some good resource
@campaignguy4165
@campaignguy4165 Жыл бұрын
My right ear feels left out.
@DaimtoAps
@DaimtoAps Жыл бұрын
I will have to make it up to it next time 😃
@MrBen580
@MrBen580 6 ай бұрын
Wouldve loved to have the code available to copy and paste lol Thank you for the video
@DaimtoAps
@DaimtoAps 6 ай бұрын
Most of the time I put the code on my website so you can just grab it
@narudh
@narudh 8 ай бұрын
this kinda sucks because user has to click the oauth consent screen ...
@DaimtoAps
@DaimtoAps 8 ай бұрын
Well that is the point. The user needs to consent to your access
@marcobattistella02
@marcobattistella02 9 ай бұрын
Really thanks for the amazing tutorial :)
How to Send Emails with Python [New Method 2023]
11:16
The PyCoach
Рет қаралды 200 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
How I fixed fix for SMTP username and password not accepted error. #googlesmpt
5:03
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
Sending Emails with Python Made Easy: Gmail SMTP Tutorial
7:48
3CodeCamp
Рет қаралды 1,5 М.
Read emails with Python + Gmail API (part 1)
9:31
ian samir
Рет қаралды 17 М.
Sending Emails With Python Including Attachments (New Method for GMail - 2022)
22:28
Google OAuth with curl: A Complete Tutorial
17:02
DAIMTO Developer Tips
Рет қаралды 25 М.
Send Email Using Outlook with Python
6:48
Jie Jenn
Рет қаралды 64 М.