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
node.js smtp nodemailer


source to share


No one has answered this question yet

Check out similar questions:

1544
How can I upgrade NodeJS and NPM to the next versions?
86
Gmail SMTP debug: "login to your web browser" error
3
Can Sengrid Replacement Labels be used with nodemailer?
2
Why am I getting this error when using nodemailer? SSL23_GET_SERVER_HELLO: unknown
2
How to hide smtp authentication information when using NodeMailer?
0
Nodemailer gets the user's email from the contact form as a dynamic value.
0
Nodemailer Verification Emails
0
How to determine the service name of a postal ID
0
Nodemailer Server + Open Relay
0
Invalid login: 502 "AUTH PLAIN XXxxxx" command not implemented



All Articles
Loading...
X
Show
Funny
Dev
Pics