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

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -