— I just want to fill the form with name, email, subject and message. And once filled send it to my email
Message permanent page
Should be rather simple. Set up an express server, have a route to accept the form input, and send an email using nodemailer
— 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?
— Just install the packages via npm or yarn. They will install all dependencies you need!
— Body-parser: depends on if you're gonna have form-data request bodiesoath: depends on if you're gonna have oauthnodemailer-smtp-transport: Probably not, nodemailer supports a bunch of stuff OOTB
— 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
— You don't need form-data for that, just use urlencoded POST
— Form-data is needed for file uploads tho
— Oh wait, lol
— You still need body-parser apparently