Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Missing attachment parameter documentation #69

@opyh

Description

@opyh

Hi,

the documentation link for how to specify attachments seems to point to an API that is different from the actually working attachment API.

Using the documented API results in missing attachments (there should be an error message for attachments that are not correctly specified, but there isn't. Always sanitize your input arguments! :) )

This is working for me:

attachments: [{
  fileName: "my-file.jpg",
  filePath: 'https://s3…/my-file.jpg',
  contentType: 'jpg'
}]

Not working for me:

attachments: [{
  filename: 'license.txt',
  path: 'https://raw.github.com/andris9/Nodemailer/master/LICENSE'
}],

Note the different case fileName vs. filename and filePath vs. path here.

I couldn't find out when the API exactly changed, but did this write-up so hopefully it helps somebody who needs to get attachments working with meteor-emails.

Thanks for your otherwise awesome package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions