Message from JavaScript discussions

September 2018

— Ok, thanks!

— 

I just want to fill the form with name, email, subject and message. And once filled send it to my email

— Should be rather simple. Set up an express server, have a route to accept the form input, and send an email using nodemailer

Message permanent page

— If you have any problems feel free to ask

— Is it necesary only to install nodemailer and express? Or also body-parser, oauth and nodemailer-smtp-transport?

Message permanent page

— Just install the packages via npm or yarn. They will install all dependencies you need!

— Hi!!

— Body-parser: depends on if you're gonna have form-data request bodies
oath: depends on if you're gonna have oauth
nodemailer-smtp-transport: Probably not, nodemailer supports a bunch of stuff OOTB

Message permanent page

— Well, as I said I have a form with name, email, subject and message. I've never used js to do a form so I'm kinda lost

Message permanent page

— You don't need form-data for that, just use urlencoded POST

— Form-data is needed for file uploads tho

— Oh wait, lol