node.js - How to hide smtp authentication information when using NodeMailer? -
i using nodemailer contact form , using smtp send mail. transporter code looks this:
transporter = mailer.createtransport({ auth: { user: 'myemail@gmail.com', pass: 'mypassword' } }); what best way hide information? able use method without hardcoding password , email address information server code.
Comments
Post a Comment