NodeJS encoding of NodeMailer username
I am using the node mail program to send multiple emails using a custom smtp transporter and I would like to encode the username and password for my mail server. Is there a way to do this?
var transport = nodemailer.createTransport(smtpTransport({
host: 'smtp.example.com',
port: 25,
tls: {
rejectUnauthorized: false
},
auth: {
user: 'no-reply@example.com',
pass: 'example'
}
}))
I would like to have something like this:
auth: {
user: 'bm9tcmVwbHk=',
pass: 'QVRGGGF0QTE='
}
Thank!
+3
source to share
No one has answered this question yet
Check out similar questions: