mailjet / Mailjet-sendemail

[API v3] Node.js wrapper to send emails using Mailjet API /!\ [DEPRECATED - SEE README] /!\
https://dev.mailjet.com
MIT License
11 stars 6 forks source link

Multiple destinations #7

Open scastrec opened 9 years ago

scastrec commented 9 years ago

When sending mail with this API to multiple destinations, only the first received mail. mailjet-sendemail displays logs correctly with all mails (see below), but in mailjet console, i see only one recipient.

from=no-reply%40eqwall.com&to=monadresse%40free.fr%2C%monadresse%40facebook.com%2C%monadresse%40gmail.com&cc=&bcc=&subject=mail%20subject&text=mail%20content%20de%20test
STATUS: 200
HEADERS: {"server":"nginx","date":"Fri, 24 Apr 2015 06:39:41 GMT","content-type":"text/html","content-length":"70","connection":"close","vary":"Accept-Encoding"}
BODY: { "Count" : 1, "Data" : [{ "ID" : 13792284970762336 }], "Total" : 1 }
scastrec commented 9 years ago

Looks like the send method not create correctly for multiple

scastrec commented 9 years ago

Resolved in my fork: https://github.com/StephaneC/Mailjet-sendemail

Code to ugly for now to ask a Pull Request