Video starts at 22:00 for those who are familiar with the basics of Node and Express.
@kevaimm17003 жыл бұрын
i wanna upvote you so bad, but it says 69, so take this as an upvote :)
@tahid96882 жыл бұрын
thanks
@aliaalmsouti53702 жыл бұрын
thanks time saver
@mikepauls60085 жыл бұрын
For anyone having an error similar to "Error: ENOENT: no such file or directory, open '/mnt/c/users/name/Email/views/layouts/main.handlebars'", Use res.render('contact', {layout: false}); instead of res.render('contact');
@mojahidomer54885 жыл бұрын
Yes , I have same problem.
@TheMisiolinka5 жыл бұрын
still not working
@TheMisiolinka5 жыл бұрын
app.locals.layout = false; adding this helped me
@MroMroMarc5 жыл бұрын
Thanks @Mike Pauls
@eduardopassero475 жыл бұрын
Some heroes doesn't wear cape.
@praveenbadigerv7 жыл бұрын
Guys, don't skip the ads that play on this channel. It will help the channel. I used to skip the ads in the beginning as I wasn't aware of it. Thanks Brad for these awesome videos. Cheers! 🍻
@shando_tube7 жыл бұрын
In order for the KZbinr to get compensated for the ad, you must either sit through 30 seconds of the ad or through the completion of the ad - whichever one comes first.
@AdamTillontheWeb6 жыл бұрын
Not sure this is actually true. Otherwise the KZbinr is being held accountable for how good the ad actually is, which isn't the case. Would like a reference for this otherwise, since I've heard that it doesn't matter to the channel owner (they just decide how many commericals/where they're placed)
@TenaciousDanR6 жыл бұрын
Ads? What are those? I never see them thanks to AdBlock. I dont think that google would let you skip ads by default anyways...
@bradical81985 жыл бұрын
If he splits the compensation 50/50 with me :)
@neenus5 жыл бұрын
@@bradical8198 He's splitting the compensation with you by taking the time to make these videos and share his knowledge with you for free!
@asmrdonk39515 жыл бұрын
Every time I look for a web design tutorial, you're the best one that comes up. Thanks so much!
@meteachesprogramming93955 жыл бұрын
hey bro this is not web designing this is backend development.
@nyxtech86923 жыл бұрын
@@meteachesprogramming9395 Design or Dev does it really matter if your learning?
@strikerwow20114 жыл бұрын
DUDE i was searching for 3 days and then I saw you and I remember how cool your videos are!! Thank you! Bloody Hell you really are the best!
@abhrarajchanda55144 жыл бұрын
Exactly!! Same here
@danielsigut28557 жыл бұрын
Brad, you have helped me immensely. I was finding outdated posts on how to use Nodemailer. I finally came across your video and got my form to work. You are awesome and deserve way more than 183K subscribers. I hope you get to one million. Keep up the good work, and you've gained a subscriber :)
@TraversyMedia7 жыл бұрын
Thank you very much :) hopefully someday
@JuaNeMe4 жыл бұрын
@@TraversyMedia lol, You already did it :)
@ozzyfromspace3 жыл бұрын
You made it so easy for me to understand how nodemailer works! Thanks to you, I've successfully implemented nodemailer into my portfolio project (verifying an email address for an express app). You rock, Brad! Seriously, you do!
@ludaxofficial3 жыл бұрын
im having an issue integrating this into my existing portfolio, could you pleasae help me out?
@ozzyfromspace3 жыл бұрын
@@ludaxofficial hi, I can try. What’s not adding up?
@ludaxofficial3 жыл бұрын
@@ozzyfromspace thanks for responding quickly! So, im implementing this back end code into my website and i dont understend if i have to put all my html into the contact.handlebar or only the html of the form.
@ozzyfromspace3 жыл бұрын
@@ludaxofficial hi, do you wanna meet on jitsi. It’s an opensource video platform where people can chat in real-time without creating an account?
@ozzyfromspace3 жыл бұрын
The approach I would generally recommend is to have an html form so you can post inputs to an app.js type server. Then copy-paste the node-mailer code and replace their test account with your own, and pass an html object (scoped to a div) to the html field. Hopefully this helps. It’s hard to say more without seeing relevant parts of your code. I’m online watching a lecture so I’ll see your response if you’re quick enough (within the next 40 minutes or so). Best wishes
@doitwithdevon6 жыл бұрын
Just about the only tutorial I've seen where I was able to roll through a test email on the first try. Kudos my friend. *Please make sure to use environment variables when going live. Search for environment variables for NodeJS and you should have no problem you don't wanna expose your credentials to the world!
@PandemicGameplay7 жыл бұрын
one tip for actually planning on using this live: you can setup system environment variables through your web deploymsnt service (example Heroku) that way you can use those in place of actual usernames passwords for better security.
@TraversyMedia7 жыл бұрын
Thanks
@PandemicGameplay7 жыл бұрын
Np! btw I love your videos. You practically taught me MEAN JS. Great work!
@InphaMyllz6 жыл бұрын
are you able to get this to work in production? im getting 503 response code, even though it works locally
@morriswarachi6 жыл бұрын
Mine too doesn't work. I hope someone has been able to solve this.
@agentklodovsky25916 жыл бұрын
how?
@mikejackson84633 жыл бұрын
Dude! I've been beating me head against a wall for 4 days. This example totally helped me figure out what the issue was. Thanks so much.
@2breborn2473 жыл бұрын
This makes me feel a bit better XD
@abdallahrizk87877 жыл бұрын
mate I have been searching for such a tutorial for a long time, Thanks. One of the best if not the best javascript tutorials channel highly recommended to subscribe
@EveretteCar2 жыл бұрын
Just started my journey in to backend and wanting to put a contact form on my portfolio. This is awesome, thank you for this. I realize this is about 5 years old at this point but I’m subscribing and looking forward to you new stuff.
@SatyamShivharey4 жыл бұрын
Finally I found someone with real knowledge. I was looking for this video all over the internet but people were always using some crap like mailgun with nodemailer. Thanks man, this video really helped me a lot :)
@Algebrodadio7 жыл бұрын
Beautiful. I had to go figure nodemailer out for my Heroku app. And then this vid comes out. I wish I had it two weeks ago! Nice work Brad.
@환이-f6w2 жыл бұрын
I started studying after watching a lecture on Udemy. You are always helpful. thank you.
@eristoff37827 жыл бұрын
Best educational content related to web development on KZbin. By far.
@up4life1087 жыл бұрын
I don't know how, but you always find the most interesting topics for your videos !!
@dorsolomon72517 жыл бұрын
Awesome video, would like to see one on payment system.
@prateekcool37 жыл бұрын
Dor Solomon Stripe is Best and it is very easy to integrate.
@SogMosee7 жыл бұрын
Yep, i have working code if you want to see it.
@dorsolomon72517 жыл бұрын
SogMosee yes that would be great.
@bradical81987 жыл бұрын
I wish my Udemy course oulined a lecture like this, everyone in the course expected to see something like this! Great video!
@kayodeemmanueladetunji33677 жыл бұрын
On a lighter note, I think the dislikes you get might be from old grudges, probably your exes. How on earth would your videos have dislikes, not even from competitors! Thumbs up Brad!
@goodluckboy94394 жыл бұрын
Mr Kayode can I propose a business ? my email is it.dept@cresentdecal.co.write me and I will explain further . Thanks Window controlAbouti
@prateekcool37 жыл бұрын
Damn! I so wanted this since so many days! Traversy came to rescue again. Thanks man!
@ndahayokevin76262 жыл бұрын
Father of Many developers Because of his content
@subhadipdutta40744 жыл бұрын
your videos like this,image upload, authentication,session help me in build my major project.....thank you sir...
@VictorHPereira4 жыл бұрын
I feel the same @subhadip dutta
@roopegarcia7 жыл бұрын
Thanks Brad you a re a lifesaver. I've learned so much from you and can't thank you enough for all the free work you do for us. Your new web site is top class. Would like to see how you created that shrinking menu, those animations and milestones. If you don't have anything else going on right now, :)
@lightinthedark57085 жыл бұрын
Your video better than Game Of Thrones! Thanks!
@goodluckboy94394 жыл бұрын
can I propose a business ? my email is it.dept@cresentdecal.co.write me and I will explain further . Thanks Window controlAbouti
@inhibited443 жыл бұрын
Thanks. Glad you mentioned you didn't use SSL. My website mentions different parameters for no SSL. I have one website on one host with email and another on heroku with no email. I got it so the code in heroku will use the system on my other website to send emails as needed. Cool!
@abhishekmazumdar20725 жыл бұрын
you got 6 monitors? Brad you're a legend..
@coffeeisthepathtovictory1290 Жыл бұрын
This is 5 years old but still good, thanks
@БогданЮрчук-т8о7 жыл бұрын
man you are awesome! i looked all forums in my country, but not found needed info thanks a lot!
@jitendrakr7 жыл бұрын
Your videos are very good. Short, crisp and very informational. I have become your subscriber. Thank you.
@quamzgraphix98264 жыл бұрын
Best programming tutor online, thank you very much for this video, it's really helpful
@edd3386 жыл бұрын
Looking forward for the series on hosting!
@elipeters56586 жыл бұрын
Love the vids! One tip is nodemon doesn't require the file extension "node app"
@PaulBuys20114 жыл бұрын
Critical point at 22:00 for those who know how to setup forms and express.
@greggsworld44536 жыл бұрын
Thank you! The tls: false trick is what I came here for. Much appreciated.
@campusdee3916 жыл бұрын
Awesome video mate! best nodemailer video on the web
@VishFoolery3 жыл бұрын
Had the same nodemon issue. Just use sudo to get by if you are working on your local machine
@corneliusisaac65393 жыл бұрын
This was very helpful even if I had to watch this in the future.
@papaOhmTV6 жыл бұрын
Another one of them best and helpful tutorials on youtube.. Thanks Brad Traversy!!!
@itsamirkhan4 жыл бұрын
Congratulations to reach 1 Million :D You deserve
@kiranhart33967 жыл бұрын
You should do a tutorial on how to use PayPal on your website to accept payments
@hachij_7 жыл бұрын
yeah! i would like to see one too
@fractured2k6 жыл бұрын
Stripe
@agentklodovsky25916 жыл бұрын
inbox to all hahaha
@modern_sapien3 жыл бұрын
Almost FIVE YEARS LATER AND STILL RELEVANT
@BrianArtea3 жыл бұрын
I must have went through 15 tutorials and finally I got it to work with your video! Thank you. I had to actually put the form inside of view/layouts/main.handlebars and it worked. How do I actually get it to work on a shared hosting server? I to am using inmotion hosting.
@travel_ghost225 жыл бұрын
For anyone having an error similar to "Error: ENOENT: no such file or directory, open '/mnt/c/users/name/Email/views/layouts/main.handlebars'", Use res.render('contact', {layout: false}); instead of res.render('contact'); use this instead for all such type of errors app.engine('handlebars',exphbs({ defaultLayout:false, }));
@sanksars13134 жыл бұрын
@K M Getting this error: Error: Invalid login: 535 Incorrect authentication data at SMTPConnection._formatError (D:\NodeJS odecontactform-master ode_modules odemailer\lib\smtp-connection\index.js:605:19) at SMTPConnection._actionAUTHComplete (D:\NodeJS odecontactform-master ode_modules odemailer\lib\smtp-connection\index.js:1340:34) at SMTPConnection. (D:\NodeJS odecontactform-master ode_modules odemailer\lib\smtp-connection\index.js:378:26) at SMTPConnection._processResponse (D:\NodeJS odecontactform-master ode_modules odemailer\lib\smtp-connection\index.js:764:20) at SMTPConnection._onData (D:\NodeJS odecontactform-master ode_modules odemailer\lib\smtp-connection\index.js:570:14) at TLSSocket. (D:\NodeJS odecontactform-master ode_modules odemailer\lib\smtp-connection\index.js:710:55) at TLSSocket.emit (events.js:310:20) at addChunk (_stream_readable.js:286:12) at readableAddChunk (_stream_readable.js:268:9) at TLSSocket.Readable.push (_stream_readable.js:209:10) { code: 'EAUTH', response: '535 Incorrect authentication data', responseCode: 535, command: 'AUTH PLAIN' }
@SubrataBasu20144 жыл бұрын
Thanks!
@VictorHPereira4 жыл бұрын
@Kumar Anindo, thanks mate!
@travel_ghost224 жыл бұрын
God it is really good to see that my comment is helping people
@1996adis4 жыл бұрын
I love you, my dude!
@arrowb6 жыл бұрын
thanks brad for this awsome tutorial, however what to do next at hosting.. means that enquiry.handlebars is not going to as index file...
@monirhrabby2 жыл бұрын
Thanks for sharing. I learned something new from this video
@SmallvilleJW5 жыл бұрын
Thank you so much, Brad! This video helped me configure Nodemailer for our production application.
@goodluckboy94394 жыл бұрын
Mr Joshua, can I propose a business ? my email is it.dept@cresentdecal.co.write me and I will explain further . Thanks Window controlAbouti
@rashmiupadhye64444 жыл бұрын
Thanks a lot ! it worked with one or two changes.But your code helped me!
@theresashen13274 жыл бұрын
Exactly what I was looking for. Thank you Brad!
@maddutchess53126 жыл бұрын
Thank you for all the tutorials, Brad. Keep 'em comin'.
@markdurksen65895 жыл бұрын
This was mad helpful. Thank you 1000x.
@nicholasdittmer44942 жыл бұрын
Excellent tutorial as always. It was that tls thing that had me stumped. Do we need to remove that for production?
@albertoarielarce29824 жыл бұрын
Thank a lot, this video was very helpfully to me!!!
@razashah90404 жыл бұрын
Hey Brad! You are a life saver.This tutorial really helped me out.
@nicolaszambranomadero97154 жыл бұрын
Excelent Video it help me so much to understand nodemailer, Thanks.
@yash66806 жыл бұрын
i was stuck using smtpTransport and stuff but your video made it so simple.. thank you very much !! ^_^ ^_^ ^_^
@ozzyfromspace3 жыл бұрын
In lieu of installing the body-parser, you could also use the express parser. It's one line of code: app.use(express.urlencoded( {extended: true} ));
@j03Biz4 жыл бұрын
This is pretty cool and it works. However, the test email and password are essential exposed on the server. Is there a more secure way of handling this?
@JS-pg7eq2 жыл бұрын
Thank you, Brad! Considering the frequency by which Node, NPM etc are updated, could you please indicate which versions you are using? Thank you so much!
@JorgeDev927 жыл бұрын
Yesterday I implemented Nodemailer in my sandbox node + angular app for learning, what a surprise to see now that your video is about nodemailer. XD
@bradbaguyo73746 жыл бұрын
Exactly what I'm looking for. Thank you Brad!
@Thesrik237 жыл бұрын
Love you Brad! The man of web.
@gabrielhauschildt66974 жыл бұрын
If you have trouble installing nodemon globally, try: npx nodemon server.js This install the package at run-time and will behave as a global package.
@naomim12077 жыл бұрын
Your video is amazing. It helped me a lot. It is for sure the best video I've watched on this subject. Thank you for helping others :)
@paulcryan92884 жыл бұрын
Well done, great video and presentation. THX Paul
@manojsingh62945 жыл бұрын
Thanks dude! its amazing , quick and simple explanation !
@alessandromuratore84313 жыл бұрын
It's help me a lot! Thank you for sharing
@rosalyna_243 жыл бұрын
how to send email for the person who filled the form ??
@freston756 жыл бұрын
You are the man! I really enjoy your content! and you always put out relevant topics keep it up!
@mateuszzdyb35475 жыл бұрын
thank you sir! your tutorial helped me a lot!
@davemason28564 жыл бұрын
Any resources on how one would integrate this into an existing static site?
@gillesmosson6 жыл бұрын
Super video, thank you Brad, it works perfectly, even with firebase
@SharePinPoint5 жыл бұрын
Thanks man! I couldnt get the handlebars thing going.......Managed to push it by directly sending over the html.....Overall very precise and good!
@oscheka5 жыл бұрын
Hey could you in depth explain how you managed to fixed it? Errors below when I send from the form Message sent: Preview URL: false Error: ENOENT: no such file or directory, open 'C:\Users\Brad\Desktop\Brad_Traversy\Node_imail\views\layouts\main.handlebars'
@@SharePinPoint hi there, so did you put your html into both public folder and views folder? also, did you put all your html or only the form html? thanks a lot!
@SharePinPoint3 жыл бұрын
@@ludaxofficial check the last line of the code. Its almost an year now But I think as the last line suggests in views folder. Entire html file including the code
@1995jozef6 жыл бұрын
Thanks Brad for these awesome videos. Cheers!
@vathsackvongchan6565 Жыл бұрын
Hi, awesome video thanks for sharing such a great totorial by the way on sender email didn't display email that have sent
@nekromanser886 жыл бұрын
Thank you for the video. Can you do the same with using a React component and Express?
@maniac14412 жыл бұрын
Thank You . it is really usefull and easy tutorial,
@tebogotau6 жыл бұрын
Brad! Awesome... All the videos. Thanks
@Mattyx356 жыл бұрын
Thank you! I've learnt a lot of interesting things on your channel!
@bondstar9274 жыл бұрын
consider becoming a patreon
@ati27573 жыл бұрын
Hi Brad, Thank you for your helpful tutorials. Is it possible to use nodemailer without auth?
@karimnatakarim59724 жыл бұрын
Hey Travy there are lot of us who made react.js front-end web sites and left whit blank contact form part. Can you make a next part on how to connect this great technique with the existing react site and how to set it up - depoloy on the server ? Or just how to separete your existing files (index, css ) and connect them to work on same root - folder ? Please man ...please :) i will do favor for you...
@IdreesDargahwala477 жыл бұрын
Loved this video. Wanted to implement nodemailer and you helped me. One question. Can we hide or wrap it up the username and password so that i can upload the code on Github ?
@tonyshah23376 жыл бұрын
Great video. I am bit confused as he actually typed the email we want to send email to. Shouldn't it come from req.body.email?
@saif18586 жыл бұрын
i too have the same query. @tony shah have you got the solution for this. if yes please let me know the how can it be done.
@sunex5796 жыл бұрын
You wouldn’t use the req.body.email. Think of it like this... if a user is filling out your form to contact you, they would fill out their name, their email, and their message, etc. You would want to send the form they filled out to your inbox. The req.body.email (which is the email address they fill in the box) is there so you can have a way to respond to the person sending the form. If you had the email sent to req.body.email (which wouldn’t work), then the person filling out the form would be essentially emailing themself.
@MrBasie12344 жыл бұрын
Hi Brad, thanks for all the videos, we appreciate it. Hope you can help just on how to get all the dependencies installed at a node.js host ?
@codeman67196 жыл бұрын
Hey, you example is working great on local, but the same is not working on live server, I have removed the tls: parameter , the error is " timeout ", please can you help me to get this done
@Mashtre7 жыл бұрын
Great video man, you've helped me a lot with this topic. Hope you make more videos on node ect.
@bonnyboy237 жыл бұрын
I would recommend using yarn package manager as it's much quicker and I find it cleaner to use. Love the content, really well taught !
@alfredfx05 жыл бұрын
Thanks a lot Brad! I used nodemailer with react as my front end which I learned from your React course on Udemy :)
@joshuaolajide14795 жыл бұрын
Hi Alfred, I'm having I'm trying to implement react with nodemailer but I'm having issues doing that, can you help me out? I will be looking forward to your response.
@alfredfx05 жыл бұрын
@@joshuaolajide1479 sure Joshua, what issues do you have?
@joshuaolajide14795 жыл бұрын
Thanks for the quick response..... I don't know how to connect my front end (react) with nodemailer.
@joshuaolajide14795 жыл бұрын
I've been able to get the values in the input but my problem is routing it to the backend
@alfredfx05 жыл бұрын
@@joshuaolajide1479 for the backend i tested stuff with the following route: app.post("/send", (req, res) => { console.log(req.body) } In the front end, I have an action like this: const sendEmail = async (formData) => { const config = { // don't recall if this is necessary, didn't test yet headers: { "Content-Type": "application/json" } }; try { const res = await axios.post("localhost:5000/send", formData, config); // check what you have returned console.log(res.data); // ... } catch (err) { console.log(err); // ... } }; And in the app I call the sendEmail(formData) providing the name, email and message as formData
@13prashaant4 жыл бұрын
Thank you so much Brad. Learning a lot from u. I made nodemailer work with my contact-form in portfolio-site. Now I am not getting how to deploy on my hosting provider(hostinger.in). Or is this provider not supporting node?
@DoheSeGyaan5 жыл бұрын
Can we use EJS in place of handlebars?
@rapundercover32925 жыл бұрын
yes but "{{msg}}" won't work and you have to put this code in your app.js: "app.set("view engine", "ejs");"
@vd69476 жыл бұрын
Hi is there a way to pass the authentication automatically and to fletch automatic the senders email ?
@jacobtherobertson5 жыл бұрын
Just found your channel. It's great!
@Robi-Fera7 жыл бұрын
Thank you man, really helpful tutorial! I managed to make it work with Gmail.
@agentklodovsky25916 жыл бұрын
would you help me please
@Booshwong6 жыл бұрын
Maybe I can help, what's going on ?
@laiquemirza24073 жыл бұрын
@@Booshwong what to place in s mtp
@Atix85 жыл бұрын
The video was very useful , and I want to know When the backend is made with loopback , how to do it?
@danielchen29684 жыл бұрын
I have learned a lot from you, thank you !
@armanbelyalov36285 жыл бұрын
It's a nice tutorial. What about using the Sendgrid?
@michaelharris80402 жыл бұрын
Thank you for a great video. Appreciate you!
@Joshua-ef7cl4 жыл бұрын
Thanks man! Really awesome video, it really helped me out, very grateful :)
@th3Phenomenon7 жыл бұрын
Loving your Bootstrap 4 course s far. I would love to see you do something on Progressive web apps
@andreasvasd88025 жыл бұрын
Hello! Congrats for the well explained video. Though, I was wondering, why we use handlebars. Why don't we export our js file into our html file? Wouldn't this aproach work?