Send emails with NodeJs w/ Nodemailer
RossJames (271)


Well, well, well,

It's Christmas, and boy, do I have a gift for you!

But first, a quick intro:

I joined not to long ago to learn to code. I had no clue about Nodejs, I never planned to post on learn, but here I am.

My mission:

Have a working way to send emails using nodemailer! Did I do it? Yes!


You will need to create a .env file which must include 2 lines:

You will also need to change
YOUR USERNAME In public/send.html
To your username. Then you're all set!

Well, almost,

If you have 2fa on your Gmail account, you need to setup an app password using the instructions at the bottom of the repl. Good luck!

Welp, I'm Out

Hope that setup wasn't to much! If you want to preview what the send page will look like, click here
If you rename your repl, make sure you change the URL in send.html!

Please let me know if I have forgotten anything! Share any adaptions below! \/

You are viewing a single comment. View All
RossJames (271)

I also forgot to add that you need to change your email on line 13 and line 20 in index.js. any problems msg me!

almostStatic (59)

@RossJames thank you i spent years tryinf to figure this out.