Message from JavaScript discussions

September 2018

— 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

— 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

— Oh wait

— You don't

— Body-parser's functionality is included with Express itself now

— Ohh ok, thanks!

— And how can I hide the password of my mail? I have my whole site in GitHub

— * Make a form that POSTs urlencoded data
* Use express.urlencoded to decode that data
* Use nodemailer to send that data

Message permanent page