How to Send Email Using Nodemailer in Node.js | Node.js Email Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone in this video we will just send an email using node.js throw node mailer package okay this is not mailer package we will install first of all this one then we will write the code to send the email using Gmail so let's first of all come to our node.js app this is an app which I have created okay here we will write our code but before that we should install the node mailer so for that simply come here and just copy this npm by install RI node mailer and just install it I have already installed it let's check it okay see load mailer it is already installed and after that we will write our code here so let's come here and here I will just write node mailer example W3 w3skool okay just come here and open this we will copy the code okay do not paste the time simply come here and just copy this example okay I will copy this example after copying this let's come here to them and paste it here after pasting it let's come here it is import it and here in the services Gmail if you are using your own so you should write your own host name but we are using Gmail and after that all the authentication here you should write your um Gmail or email and here we should write the password the password and it will not accept the password that you have assigned to your Gmail or Google account but instead of that first of all you should turn on um two-step authentication and after that move to the authentication under that you will find a password you should generate a password okay there are two fields for the first you should install the mail for the second one you are using mobile or computer which one device you are using just after selecting those two devices then generate a password that will generate a password for you then write that password Here I have already did this step so this was the steps that I I have showed you okay so now I will just write my email here um this is the email that you would like to send email from that okay this is these are the authentication for that this is the email the user and the area you should write the password that you have generated so now I will write that cfcp over here I have written that yeah that is okay the password is okay so now here you should write again that Gmail copy this and paste it here okay I would like to send from this Gmail account this email and two where you would like to send and I would like to send to this one dot com okay okay save it and sending email using notice okay this is the subject and the text let's assign is the email sent for learning let's save it and let's first of all I will open my Gmail account see this is this was sent by me a previously for testing so now I will send it just a new email to this Gmail account so let's come here to our app okay so let's run our app okay to run up let's come here to the terminal in the terminal CD server to the node up and here I will light in the M start let's press enter so it will start see the email has sent okay the email has sent no now let's check it and depreciate see the Gmail has came this is the new one which is game this is the image sent foldering this is what the previously and this is the new one which I have sent right now so it was all about this that which I we have tested and sent in email using um node.js node meter so this was the way okay that you can send your email using node beta I hope this video was helpful for you if you like this video don't forget to subscribe our YouTube channel and thanks for watching
Info
Channel: Code With Yousaf
Views: 9,337
Rating: undefined out of 5
Keywords: nodemailer, nodemailer gmail, nodejs nodemailer, nodemailer tutorial, send email nodejs gmail, nodemailer node js, send email nodejs smtp, send email nodejs express, send emails with nodemailer, how to send email using nodemailer, how to send email in gmail, nodemailer email templates, how to send emails using node.js, node.js - send emails using nodemailer | gmail | oauth2, send emails using node.js nodemailer and angular, nodejs, how to send email using nodejs
Id: XeWswDLDPS4
Channel Id: undefined
Length: 4min 57sec (297 seconds)
Published: Sun Jul 23 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.