-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jatin create a function to send email to user's who completed hours but missed summary #1104
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @JatinAgrawal94 ,
Thank you for the great instructional video on setting up the Gmail API with OAuth. After following all the steps and completing the testing, I can see console logs in the terminal, but nothing is sent to my inbox. I’m not sure if I missed something. I’d appreciate any guidance you can offer and feel free to reach out anytime for further discussion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Related PRS (if any):
To test this backend PR you need to checkout the dev branch in frontend .
Main changes explained:
##Before Testing
To send an email using the Gmail API with OAuth2 and nodemailer, follow the video below and set it up.
https://www.youtube.com/watch?v=-rcRf7yswfM&t=10s&ab_channel=MafiaCodes
Note: Publish your OAuthConsentScreen After creating it. This video is only for the purpose of learning how to get the credentials.
Fill in the these variable values from the above setup in the .env file of the backend.
sendEmail=true
REACT_APP_EMAIL =
REACT_APP_EMAIL_CLIENT_ID =
REACT_APP_EMAIL_CLIENT_SECRET =
REACT_APP_EMAIL_REFRESH_TOKEN =
REACT_APP_EMAIL_CLIENT_REDIRECT_URI = https://developers.google.com/oauthplayground
How to test:
npm install
andnpm run build
to run this PR locallyFrontend Repository
Screenshots or videos of changes:
email-send.mp4