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 Жыл бұрын
you only need to verify the app to get ride of the app not verified warning
@int75 Жыл бұрын
Excellent content! How can I use the api to send email from a self hosted program?
@DaimtoAps Жыл бұрын
Yes you should be able to do that
@shgharat Жыл бұрын
Where is the code link?
@DaimtoAps Жыл бұрын
I dont think I have put the code live yet.
@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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
Do you have Google Workspace?
@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 Жыл бұрын
A forward is just a send with the body of the message you are forwarding
@shgharat Жыл бұрын
How do I delete emails
@DaimtoAps Жыл бұрын
Your connecting directly to the SMTP server so use the same commands to delete messages.
@surisua1611 ай бұрын
Hello, dear DAIMTO Developer Tips channel. Is there any way to read emails from Gmail without using domain-wide delegation and OAuth consent screen?
@DaimtoAps11 ай бұрын
SMTP server with an apps passy
@surisua1611 ай бұрын
@@DaimtoAps thank you!!
@KanwalKhalid-x9s Жыл бұрын
Does it generate token for outlook mail to?
@DaimtoAps Жыл бұрын
no this is Gmail not Microsoft
@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 Жыл бұрын
check the documention its a bit outside of my experience
@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.
@abdulrafay57112 ай бұрын
Where do I get the token.json file? please reply
@DaimtoAps2 ай бұрын
Its created when the user authorizes the app
@abdulrafay57112 ай бұрын
@@DaimtoAps I am literally having troubles, please suggest me some good resource
@campaignguy4165 Жыл бұрын
My right ear feels left out.
@DaimtoAps Жыл бұрын
I will have to make it up to it next time 😃
@MrBen5806 ай бұрын
Wouldve loved to have the code available to copy and paste lol Thank you for the video
@DaimtoAps6 ай бұрын
Most of the time I put the code on my website so you can just grab it
@narudh8 ай бұрын
this kinda sucks because user has to click the oauth consent screen ...
@DaimtoAps8 ай бұрын
Well that is the point. The user needs to consent to your access