alykoshin / gmail-send

Minimalistic module to send email using GMail
MIT License
89 stars 26 forks source link

Last email in "to" array is picked up quoted #4

Closed nicholaswmin closed 7 years ago

nicholaswmin commented 7 years ago

In the following code:

const gmailSend = require("gmail-send")({
  user: "foo@bar.com",
  pass: "foobarfoobar",
  to: [
    "foo@bar.com",
    "bar@bar.com",
    "baz@bar.com" // this is picked up quoted
  ],
  subject: "Hello world",
  text: "Hello world"
});

The above sends emails to these addresses:

foo@bar.com // OK, receives the email, bar@bar.com // OK, receives the email, "baz@bar.com" // this is sent quoted - which causes this address not to receive the email at all.

Screenshot from Gmail

Here's a screenshot from my Gmail "to" field showing this issue:

Screenshot of Gmail "To" field showing the last address in quotes

alykoshin commented 7 years ago

Fixed and updated in NPM. Please, confirm it is working.

nicholaswmin commented 7 years ago

Fixed, thanks.

alykoshin commented 7 years ago

You are welcome.