Sending Emails in Node.js with Nodemailer & Gmail | Step-by-Step Tutorial

Поділитися
Вставка
  • Опубліковано 6 січ 2025

КОМЕНТАРІ • 136

  • @marcusluis_s
    @marcusluis_s Місяць тому +1

    December 4, 2024 and your tutorial still works. Thank you!

  • @dennismurimi-m8c
    @dennismurimi-m8c 9 місяців тому +4

    You are the GOAT when it comes to sending emails bro. I really loved it, very well explained. Thank you so much. Keep it up.

    • @Shishir-d2t
      @Shishir-d2t 8 місяців тому +1

      But there is no app passwords only in the gmail 2 step verification

    • @webwizard8
      @webwizard8  8 місяців тому +1

      Make sure you've two step verification enabled, and make use of search bar available in the page
      myaccount.google.com/apppasswords

  • @MohamedAmer-hn1tv
    @MohamedAmer-hn1tv Рік тому +4

    Thanks a lot Man! 😘
    Really liked you walking us through these articles at the end of the video for further reading, not just giving us the fish, but teaching us how to catch it.

  • @kingdom.of.feathers
    @kingdom.of.feathers 3 місяці тому

    Thanks man! I was searching for hours for something like this, saved my day!

  • @augustinegodspower2989
    @augustinegodspower2989 10 місяців тому +2

    you re a gem, thanks so much for this.

  • @Democratic_people
    @Democratic_people 10 місяців тому +1

    thanks bro... it's really solved my problem
    i have seen many videos but none of them could even talk about how to get our app password...

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

    Excellent. You explained the entire process like a pro!

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

    Good and Informative Video! Thanks and keep going 🎉

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

    Your explaination is good. Every one can say how to send using mailinator, but you are explaining about port number. It's great.

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

    Thanks bro, helped alot.... i wasted 3 hours in searching this and finally you helped.

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

      I'm glad I could help you out! Don't worry about the time you spent searching - It lead to the right search, Keep rocking!

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

    Thanks a lot, I really apprecite that you went us through the process behind as well. Kudos :)

  • @arpitadeb7167
    @arpitadeb7167 10 місяців тому

    Really helped a ton! Thank a lot!

  • @n-logn
    @n-logn 6 місяців тому

    thanks bro really a very good explanation , please keep making such videos

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

    great video! helped me a ton keep it up !

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

    Nice ❤

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

    good tutorial 👍

  • @subhampradhan2898
    @subhampradhan2898 10 місяців тому

    Thanks a lot brother for this kinda informative video...

  • @Pablo-Devs
    @Pablo-Devs 8 місяців тому

    Great Video. It helped a lot! Thumbs Up.

  • @brianalexander2202
    @brianalexander2202 11 місяців тому

    Thank you! i can see how easy is now

  • @mwebazenicholas7075
    @mwebazenicholas7075 8 місяців тому

    Weldone.
    It has helped me. Almost gave up because of errors 😂😂

  • @riteshmore2565
    @riteshmore2565 11 місяців тому

    thank you bro for your tutorial i was stuck at the 2 step authentication ,✌ keep coding

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

    Thats faantastic. Thank you!

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

      You're very welcome! Feel free to explore more content on the channel!!

  • @raphaelsomtochukwu4211
    @raphaelsomtochukwu4211 10 місяців тому

    Thanks man, it worked

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

    Thank you man! very well explained.

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

      You're welcome! I'm glad you found the explanation helpful. Thanks for watching and your kind words!!

  • @narasimha6470
    @narasimha6470 10 місяців тому

    ThankYou My Man!!!!!

  • @sza619
    @sza619 5 місяців тому

    Thanks a lot, I was stuck with OAuth from 2 days xD

  • @front-endnoob4139
    @front-endnoob4139 9 місяців тому

    Obrigado pelo conteúdo!!

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

    Thank you so much guy. You made it so easy…

  • @GapcrozMx
    @GapcrozMx 11 місяців тому

    thanks a lot man !!!! amazing

  • @DbzNetudoBr
    @DbzNetudoBr 10 місяців тому

    Thanks man!!!

  • @ighsdv
    @ighsdv 8 місяців тому

    It was super super helpful!!! Thank you very much!!

  • @RolandCook-v2c
    @RolandCook-v2c Рік тому

    Thank you I can now send emails from my portfolio website it was easier then I expected :)

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

      That's fantastic to hear! Thanks for watching and happy coding!!

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

    helped a lot thankyou

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

    Por fin encontré una explicación satisfactoria. Muchas gracias, saludos desde Colombia!

  • @gabrielchris-ikaria1111
    @gabrielchris-ikaria1111 Рік тому

    Amazing videos thank you

  • @தமிழ்தேசியம்-ட4த

    hey man ur awesome contents, please continuesly Do

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

      Thank you so much for the kind words! I'll definitely continue to create more videos !!

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

    Explained everything perfectly 👏👏

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

    Very good explanation.

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

      Thank you so much! I'm glad you found the explanation helpful. Explore the channel for more content and consider subscribing to the channel to support me!

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

    thanks bro, I need this

  • @castle2313
    @castle2313 10 місяців тому

    Thanks!

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

    Thank you! I was stuck with trying to use the "enable less secure apps" option and did not know the new way. Thank you for thoroughly explaining Gmail parameter changes.

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

      I'm glad the video helped you! Special thanks for noticing the change and showing your support!!

  • @yagneshacharya2461
    @yagneshacharya2461 10 місяців тому

    its working thanks

  • @ПРОГРЕСС-л4л
    @ПРОГРЕСС-л4л 6 місяців тому +2

    thanks

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

    Thanks a lot friend. I tried use from object like you did but again in a recevier it shows my email address instead of name, how can I fix it?

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

    Thank you bro

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

    thanks a lot Man,

  • @kylemacklane3055
    @kylemacklane3055 10 місяців тому

    tears are allover my eyes coz it worked

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

    Your explanation too good 👍

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

      Thank you so much! I'm glad you found the explanation helpful. Explore the channel for more content and consider subscribing to the channel to support me!

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

    Thank you!

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

    It was very useful, thanks for your time and effort. 😉

  • @SanjayRawat-gu8vq
    @SanjayRawat-gu8vq 10 місяців тому

    Thanks man

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

    Thanks a lot bro

  • @ganpatsisodiya4507
    @ganpatsisodiya4507 8 місяців тому +1

    I want to configure my outlook mail account. So what should I use in place of service and host ??

  • @antareephasan
    @antareephasan 8 місяців тому +1

    Thank you it worked fine, but this is a older way of sending mails using google API, there is a new way using clientId and secret and session token etc.
    Please make a new video on that.

  • @amirhamza6882
    @amirhamza6882 8 місяців тому

    It have some issue like if i send mail to the yahoo email . Sending mail go to the spam folder . what is the possible issue there?

  • @simonIsDev
    @simonIsDev 10 місяців тому

    bro, it worked for me

  • @rituanuragi2541
    @rituanuragi2541 8 місяців тому

    thanks a lot

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

    Does this option have an expiration date and a limit on the number of messages sent per month?

  • @AunAli-d7g
    @AunAli-d7g 5 місяців тому

    If we want to send the email to that user's email which he or she would provide to the Bot. What would be the procedure of this? Kindly Explain

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

    Have you tried sending email using Vercel? I managed to run the local server, but when uploading the files to Vercel, it simply doesn't work. Gives error 404...

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

      hosting server shouldn't be an issue when executing a certain functionality
      404 - is a http status for not found case, I'm not sure in which scenario you were getting this problem
      I'd recommend to debug a little to find the cause!

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

      @@webwizard8 I was trying to send emails directly through Gmail, but it didn't work. Through Sendgrid it worked. Thank you very much!

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

    Thank You

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

      You're welcome! Feel free to explore more content on the channel!!

  • @nan096-l1f
    @nan096-l1f Рік тому +1

    Hey, can i host this feature on my live website ? im currently hoisting on go daddy. thanks.

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

      Absolutely, The tutorial demonstrates how to integrate email sending functionality in Node.js using Nodemailer and Gmail. Just make sure to follow the security best practices and authentication methods recommended to safeguard your Gmail account details.

  • @ExploreSciFi
    @ExploreSciFi Місяць тому +1

    next time give link to github sorce code described in video plesae

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

    tysm

  • @MuhammadRafay-we9nc
    @MuhammadRafay-we9nc 7 місяців тому

    Kon kon video dekhnay say pehlay comments check krta hai?🤔🤔🤔🤔

  • @MrCuteguylol
    @MrCuteguylol 8 місяців тому

    The google UI has changed. Can anyone provide me tutorial for the new UI?

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

    merci beaucoup

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

      Je suis ravi que la vidéo vous ait été utile. Merci à vous pour votre soutien! ❤️

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

    Thank bro, Is there a time limit or the number of emails sent per month with this option?

  • @PalashMandal-f7b
    @PalashMandal-f7b 9 місяців тому

    I'm using gmail as smtp server but sometimes it's delivered mail after 5 minutes. Please, suggest any cheap but best performer smtp server for solve this issue.
    Thanks a lot Man! 😘

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

      you might want to consider services like SendGrid ( Twilio ) or Amazon SES. They offer reliable performance at reasonable prices. Hope this helps! 😊

  • @long_codes
    @long_codes 29 днів тому

    decent video 10:10

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

    This is really useful. Please make a video on how to make a reply to the mail.

  • @cowboyleal3148
    @cowboyleal3148 5 місяців тому

    I follow this process, and my logs show successful email sent, but the email never reaches my recipients inbox

    • @YSGTV-ht2se
      @YSGTV-ht2se 5 місяців тому

      Yeah same here

    • @cowboyleal3148
      @cowboyleal3148 5 місяців тому

      @@YSGTV-ht2se I switched to using outlook as the provider, and my emails sends now, but it gets reported as spam, which I think is happening due to me using a html template for the email once it sends, resorted to just alerting the recipient of this and provided steps for them to allow the email to reach their inbox

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

    I am stuck at env file , how to use that 16 digit generated password?

    • @diyadey1654
      @diyadey1654 10 місяців тому

      Did you get the solution?
      Is gmail SMTP working properly?

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

      @@diyadey1654 same problem with me. response: '535-5.7.8 Username and Password not accepted.

    • @webwizard8
      @webwizard8  8 місяців тому

      Make sure you've two step verification enabled, and make use of search bar available in the manage accounts page
      myaccount.google.com/apppasswords
      In .env file, just create below two variables and access them inside code using process.env.USER & process.env.APP_PASSWORD
      USER=yourGmail
      APP_PASSWORD=generatedAppPassword

  • @420citygamer5
    @420citygamer5 Рік тому

    I am getting an ETIMEDOUT error
    Can I know why?
    How to get rid off it

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

      Sometimes, Gmail's SMTP server can experience temporary issues. If everything seems correctly configured on your end, wait for a while and try again later.
      Use Nodemailer's debugging option to get more information about the error. You can set this in your Nodemailer transport options:
      transport = nodemailer.createTransport({
      service: 'gmail',
      auth: {
      user: 'your@gmail.com',
      pass: 'your-app-password',
      },
      debug: true, // Add this line
      });
      This will log detailed information about the SMTP communication, which can help pinpoint the issue.

    • @KennyNet-d8l
      @KennyNet-d8l Рік тому

      I have been looking for this. Did you fix it?

  • @rathankudukulli1403
    @rathankudukulli1403 8 місяців тому

    i m not able to find app password in my google account

    • @webwizard8
      @webwizard8  8 місяців тому

      Make sure you've two step verification enabled, and make use of search bar available in the page
      myaccount.google.com/apppasswords

  • @dwchau.254
    @dwchau.254 8 місяців тому +1

    i dont see App password any more, can anyone help me?

    • @alex170702AP
      @alex170702AP 8 місяців тому

      x2

    • @webwizard8
      @webwizard8  8 місяців тому +2

      Make sure you've two step verification enabled, and make use of search bar available in the page
      myaccount.google.com/apppasswords

    • @brown-jn9zz
      @brown-jn9zz 8 місяців тому

      same

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

    Source code ?

  • @arabeyabelajarnahwu-shorof5902
    @arabeyabelajarnahwu-shorof5902 5 місяців тому

    Error by now

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

    Nodemailer - nodemailer.com/about/
    Nodemailer npm - www.npmjs.com/package/nodemailer
    Also checkout How to send emails in Node.js using SendGrid ( Twilio ) | Custom mail | Dynamic Template - ua-cam.com/video/YqR4kfyO6hc/v-deo.html

  • @yatendraupadhyay2180
    @yatendraupadhyay2180 10 місяців тому

    code de deta bhai.

  • @adventure5444
    @adventure5444 7 місяців тому +4

    am i the only one who can't find "App password"?

  • @omkarparmaj3262
    @omkarparmaj3262 8 місяців тому

    Abeeee code provide kar be

  • @karennino6639
    @karennino6639 7 місяців тому +1

    thank you!

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

    Thanks man