Nodemailer - Authentication error when using env

Hi!
Nodemailer works and sends the email when I have the password in the code, but when I use process.env.NODEMAILER_PASS it gives an authentication error
Any ideas? I have tried putting the env variable in quotes as well and it doesn’t work

Eddie

Fixed by putting the env variable in ‘’ not “” :man_facepalming:
Another case where I try one more thing after I make a post and it works :joy:

3 Likes

It’s nice to see that you’re still looking for answers even after asking for help. It’s also even more nice to see that you post the solution that fixed your issue! :slightly_smiling_face:

4 Likes