Nodemailer | Send Email using Gmail with OAuth | Node.js

Поділитися
Вставка
  • Опубліковано 10 лют 2025
  • In This Video I will show you how to create nodemailer server to send mail using Gmail but with a more secured approach using OAuth.
    Nodemailer Server Repo Link -- (github.com/Pro...)
    Please Subscribe, So That I can make more videos on such complex topics.

КОМЕНТАРІ • 30

  • @ProgrammingInBlood
    @ProgrammingInBlood  Рік тому +2

    Nodemailer Server Github Repo URL -> github.com/ProgrammingInBlood/nodemailer-gmail-Oauth2

  • @КлиментБаркалов

    i was stack in redirect uri because im typed slash after link, only your video was helpfull for solve this issue

  • @dekafmusic
    @dekafmusic Рік тому

    this guided me so much, thanks

  • @ReflexWalaXD
    @ReflexWalaXD Рік тому +2

    Wow Really Helpful

  • @Irina-mm4hf
    @Irina-mm4hf 9 місяців тому

    Thank you so much for this video and repo!

  • @dineshindn4404
    @dineshindn4404 Рік тому +1

    Excellent 👏

  • @scrappyjs2632
    @scrappyjs2632 Рік тому +1

    thank very much for this video

  • @stevendo6829
    @stevendo6829 4 місяці тому

    Thanks

  • @arunacentura2981
    @arunacentura2981 Рік тому

    Thanksss dudeeee....

  • @rameshchavan06
    @rameshchavan06 3 місяці тому

    Thanks for sharing, its works on local but not on live server? email not received.

  • @ghostofdelusions
    @ghostofdelusions Рік тому +2

    So Much Helpful Worth It ❤
    Also Can you tell me the song name pls.

  • @hendoitechnologies
    @hendoitechnologies 9 місяців тому

    Sir.. Post video how to deploy react js or next js website on google cloud

  • @NithyaE-k7s
    @NithyaE-k7s 2 місяці тому

    Error: Invalid login: 535-5.7.8 Username and Password not accepted. For more information, go to why this error came , please explain

  • @dineshindn4404
    @dineshindn4404 Рік тому

    Your videos are excellent, But, I'm facing some issues, after a few days of creating it, the refresh token expires. Would you happen to have any solutions?

    • @ProgrammingInBlood
      @ProgrammingInBlood  Рік тому +1

      Yes, This is what I found "A Google Cloud Platform project with an Auth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days".
      So, you will need to move the app to production and put the app for verification.
      (NO OTHER WAY IS THERE TO PREVENT THIS)

  • @Crys-lc9ue
    @Crys-lc9ue 7 місяців тому

    Hi. What happens when the token expires? Can it be updated automatically, or do I need to generate a new token and copy it into my code?

    • @ReflexWalaXD
      @ReflexWalaXD 7 місяців тому

      Yes, This is what I found "A Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days". So, you will need to move the app to production and put the app for verification. (NO OTHER WAY IS THERE TO PREVENT THIS)

  • @pateljeel8515
    @pateljeel8515 Рік тому

    Bro when refresh token expires then how does this mail-send functionality work? should we need to regenerate the token and manually put refresh token as like we did previously if yes then how to do that

    • @ProgrammingInBlood
      @ProgrammingInBlood  Рік тому +1

      Refresh Token Expires in 7 days. So The Keys Needs To Be Updated Every 7 days. The Refresh Token Generation is shown in the video. To Generate Permanent Refresh Token Move Your app From “Testing” To Production

    • @pateljeel8515
      @pateljeel8515 Рік тому

      @@ProgrammingInBlood So On Production App whichever Refresh token Generate it will not expire. and I use it for life time with single token

    • @ProgrammingInBlood
      @ProgrammingInBlood  Рік тому +1

      Exactly

    • @malevolentbun
      @malevolentbun 6 місяців тому

      @@ProgrammingInBlood Are there any more differences between testing and production we should be aware of? And so, this thing "works" forever then? We don't have to update or anything here based on time right

  • @sifact1391
    @sifact1391 Рік тому

    Hey thanks. I did it exact same way but refresh token expired within 7 days. Is there any way to prevent this?

    • @ProgrammingInBlood
      @ProgrammingInBlood  Рік тому +1

      Yes, This is what I found "A Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days". So, you will need to move the app to production and put the app for verification. (NO OTHER WAY IS THERE TO PREVENT THIS)

  • @houssemghabarou9984
    @houssemghabarou9984 Рік тому

    is it free or u have a certain number emails u can send ?

    • @ProgrammingInBlood
      @ProgrammingInBlood  Рік тому +1

      Unlimited but there is rate limit for per sec and per hour you can check docs for further information

  • @bilalELFazazi-pz9gu
    @bilalELFazazi-pz9gu Рік тому

    How to solve problem can't create new access token for user