Nodemailer - Send Emails From Your Node.js App
HTML-код
- Опубликовано: 7 сен 2017
- In this video we will create a simple Node.js and Express app and implement the Nodemailer module to add a contact form.
CODE: Complete Node app repo
github.com/bradtraversy/nodec...
ORIGINAL HTML/CSS FORM DOWNLOAD:
www.traversymedia.com/download...
INMOTION HOSTING SIGNUP:
inmotion-hosting.evyy.net/c/3...
BECOME A PATRON: Show support & get perks!
/ traversymedia
ONE TIME DONATIONS:
www.paypal.me/traversymedia
COURSES & MORE INFO:
www.traversymedia.com
FOLLOW TRAVERSY MEDIA:
/ traversymedia
/ traversymedia
/ traversymedia Наука
Video starts at 22:00 for those who are familiar with the basics of Node and Express.
i wanna upvote you so bad, but it says 69, so take this as an upvote :)
thanks
thanks time saver
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! 🍻
In order for the RUclipsr 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.
Not sure this is actually true. Otherwise the RUclipsr 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)
Ads? What are those? I never see them thanks to AdBlock. I dont think that google would let you skip ads by default anyways...
If he splits the compensation 50/50 with me :)
@@bradical8198 He's splitting the compensation with you by taking the time to make these videos and share his knowledge with you for free!
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!
Exactly!! Same here
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!
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.
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
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.
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 :)
Thank you very much :) hopefully someday
@@TraversyMedia lol, You already did it :)
Every time I look for a web design tutorial, you're the best one that comes up. Thanks so much!
hey bro this is not web designing this is backend development.
@@meteachesprogramming9395 Design or Dev does it really matter if your learning?
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, :)
Damn! I so wanted this since so many days! Traversy came to rescue again. Thanks man!
I don't know how, but you always find the most interesting topics for your videos !!
I wish my Udemy course oulined a lecture like this, everyone in the course expected to see something like this! Great video!
man you are awesome!
i looked all forums in my country, but not found needed info
thanks a lot!
Thank you! The tls: false trick is what I came here for. Much appreciated.
Thank you for all the tutorials, Brad. Keep 'em comin'.
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 :)
Another one of them best and helpful tutorials on youtube.. Thanks Brad Traversy!!!
Great explanation, and thank you for not using the gmail smtp!
Best educational content related to web development on RUclips. By far.
Thank you so much, Brad! This video helped me configure Nodemailer for our production application.
Mr Joshua, can I propose a business ? my email is it.dept@cresentdecal.co.write me and I will explain further . Thanks Window controlAbouti
Exactly what I'm looking for. Thank you Brad!
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');
Yes , I have same problem.
still not working
app.locals.layout = false; adding this helped me
Thanks @Mike Pauls
Some heroes doesn't wear cape.
I started studying after watching a lecture on Udemy. You are always helpful. thank you.
Exactly what I was looking for. Thank you Brad!
Hey Brad! You are a life saver.This tutorial really helped me out.
Your videos are very good. Short, crisp and very informational. I have become your subscriber. Thank you.
Best programming tutor online, thank you very much for this video, it's really helpful
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.
This makes me feel a bit better XD
Great video man, you've helped me a lot with this topic. Hope you make more videos on node ect.
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!
im having an issue integrating this into my existing portfolio, could you pleasae help me out?
@@ludaxofficial hi, I can try. What’s not adding up?
@@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.
@@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?
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
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 :)
You are the man! I really enjoy your content! and you always put out relevant topics keep it up!
Thanks a lot ! it worked with one or two changes.But your code helped me!
Thanks dude! its amazing , quick and simple explanation !
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!
Super video, thank you Brad, it works perfectly, even with firebase
i was stuck using smtpTransport and stuff but your video made it so simple.. thank you very much !! ^_^ ^_^ ^_^
This was mad helpful. Thank you 1000x.
thank you sir! your tutorial helped me a lot!
your videos like this,image upload, authentication,session help me in build my major project.....thank you sir...
I feel the same @subhadip dutta
Thanks Brad for these awesome videos. Cheers!
Looking forward for the series on hosting!
Thanks man! Really awesome video, it really helped me out, very grateful :)
awesome piece of content, def saved me alot of time. Thanks brah!
Excelent Video it help me so much to understand nodemailer, Thanks.
Thank a lot, this video was very helpfully to me!!!
Awesome video mate! best nodemailer video on the web
Well done, great video and presentation. THX Paul
It's help me a lot! Thank you for sharing
Congratulations to reach 1 Million :D You deserve
Thanks for sharing. I learned something new from this video
Just found your channel. It's great!
Loving your Bootstrap 4 course s far. I would love to see you do something on Progressive web apps
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.
Thanks
Np! btw I love your videos. You practically taught me MEAN JS. Great work!
are you able to get this to work in production? im getting 503 response code, even though it works locally
Mine too doesn't work. I hope someone has been able to solve this.
how?
Thank you very much dude, your videos are so helpfull, i love your work.
Thank you! I've learnt a lot of interesting things on your channel!
consider becoming a patreon
Love the vids!
One tip is nodemon doesn't require the file extension "node app"
Awesome video, would like to see one on payment system.
Dor Solomon Stripe is Best and it is very easy to integrate.
Yep, i have working code if you want to see it.
SogMosee yes that would be great.
Love you Brad! The man of web.
I have learned a lot from you, thank you !
Brad! Awesome... All the videos. Thanks
This was very helpful even if I had to watch this in the future.
Thank You . it is really usefull and easy tutorial,
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.
Thank you so much for such valuable information!
You rock man!! Very helpful stuff!
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 !
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!
Mr Kayode can I propose a business ? my email is it.dept@cresentdecal.co.write me and I will explain further . Thanks Window controlAbouti
This is 5 years old but still good, thanks
You're awesome Brad! Thank youuuuu
Very helpful thank you so much for the video!
Thank you man, really helpful tutorial! I managed to make it work with Gmail.
would you help me please
Maybe I can help, what's going on ?
@@Booshwong what to place in s mtp
Your video better than Game Of Thrones! Thanks!
can I propose a business ? my email is it.dept@cresentdecal.co.write me and I will explain further . Thanks Window controlAbouti
Thank you, this save my day.
This is awesome! Great job!
you got 6 monitors? Brad you're a legend..
Thank you for a great video. Appreciate you!
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!
thanks a ton for this important tutorial.
good vid, worked for me. like well deserved.
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 ?
Wow! Great as always!
Excellent tutorial as always. It was that tls thing that had me stumped. Do we need to remove that for production?
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 ?
Father of Many developers Because of his content
Hai Traver, thanks for your great video! I was wondering if i can use the 'messages send successful' or 'failed to send messages' with template engine EJS instead. How can i use the variable for ejs template system?
Thank you, Brad!
Thx for this.
Also would be great to see something game-like with nodejs+socketio. Simple gameapp, like scissors-paper-rock or something (there is one actually on youtube), but with your style of explaining stuff.
Thank you Brad!
Thank you!!!
Nice Tutorial
Hi Brad, Thank you for your helpful tutorials. Is it possible to use nodemailer without auth?
Thank you for the video. Can you do the same with using a React component and Express?
THANK YOU!!! I HAVENT WATCHED IT YET BUT, I ALREADY LOVE IT!
thanks brad for this awsome tutorial, however what to do next at hosting.. means that enquiry.handlebars is not going to as index file...
thank you very much is very helpful😁
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
bro You are simple super , video was very clear and very neat so thankfull
Mr Purush can I propose a business ? my email is it.dept@cresentdecal.co.write me and I will explain further . Thanks Window controlAbouti
@@goodluckboy9439 email id not found brother , you can reach me on insta
Thanks man! I couldnt get the handlebars thing going.......Managed to push it by directly sending over the html.....Overall very precise and good!
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'
@@oscheka
//Static Folder
app.use('/public',express.static(path.join(__dirname,'public') ));
app.use(cors());
app.get("/",function(req,response){
response.sendFile(path.join(__dirname+'/public/index.html'));
//response.sendFile("/views/index.html");
});
@@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!
@@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
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?