Skip to content

Sending email through nodemailer to forward email( connected to gmail

I managed to send a message with nodemailer to my gmail address, but I can’t do it with my forward email. Here’s how it looks like for my gmail account

const transporter = nodemailer.createTransport({
  host: "",
  port: 587,
  secure: false,
  auth: {
    user: [email protected],
    pass: myAppPassword

What I want is to send mail with my forward email that is:

[email protected],

which is connected to gmail account and was added with


As long as you’ve been able to setup “Send email as” in Gmail using these instructions you’ll have the credentials you’ll need.

The user should just be the username of the gmail account without the And the pass should be the one you generated at