[solved] Email Send stopped working on upgrade


#1

Recently upgraded to Meteor 1.6.1 from a rather old version.

I have the following email send that used to work correctly:

    Email.send({
      to: to,
      from: from,
      subject: 'QCS Gift Card Redemption Portal',
      text: text,
      attachments: [{
        fileName: "test.csv",
        contents: file,
        contentType: "text/plain"
      }]
    });

Instead i’m getting an attachment with the name attachment-1.txt and no data in it. Has the api changed at all? I tried to digging around but couldnt find any api changes in any documentation.


#2

turns out there were api changes. fileName is now filename and contents and now content