41 thoughts on “Nodemailer – Send Emails From Your Node.js App

  1. 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.

  2. It's working in localhost but in my heroku deployed application when I submit it keeps on loading but doesn't render pages and shows error pls help me out anyone 😭

  3. i know this video is 3 years old but… How can I upload this to a hosting site. I have my website already and the contact etc but I see that the server has to be run every time with npm run something. When I upload my files through Filezilla, how can this npm script be run?

  4. 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 🙂

  5. I got this coded up and working. It is hitting my "from: ethereal account" but not reaching any popular email providers Ex. Hotmail. Which email providers are you all using to satisfy the "to: " field?

  6. 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?

  7. does any one have another solution except using gmail as i dont have any domain name and just learning node js

  8. the form is just loading in the browser it's not logging the details to the terminal pls what could have gone wrong

  9. Hi I have a little trouble when running the server after copying the interface code to contact.handlebars :(( im using svelte, and it shows the following error:

    Unexpected token (Note that you need plugins to import files that are not JavaScript)

    1: <script context="module">

    ^

    2: import { post } from '@utils/api';

    3: export async function preload(_, session) {

    Does anyone have a clue why this happened??? Thank you.

  10. Brad Traversy! You RULE!
    All Traversy Media community RULES!
    Can anyone tell me if we can use this on a running website please?
    I'm getting an error when I click on the submit button (cannot find /send port:443)
    Thanks,

  11. To use Gmail account & add your credentials to your project SECURELY watch this tutorial
    https://www.youtube.com/watch?v=Va9UKGs1bwI

  12. trying to use this with angular do i still need to use the handlebars module, being that a template would already be setup in angular.

  13. I dont understand 1 thing, where he put all from the HTML file to the handlebars. When I have my full website, do I have to put all the html to the handlebars or just the class containing the form ?

  14. Error ::: code: 'EAUTH',
    response: '535-5.7.8 Username and Password not accepted. Learn more atn' +
    '535 5.7.8 https://support.google.com/mail/?p=BadCredentials u15sm8745489pgm.10 – gsmtp',
    responseCode: 535,
    command: 'AUTH PLAIN'

  15. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *