-
Notifications
You must be signed in to change notification settings - Fork 36
Missing attachment parameter documentation #69
Comments
Hi there! Thanks for reporting in. What a mess, the official Meteor docs points to this: https://github.com/nodemailer/mailcomposer/blob/7c0422b2de2dc61a60ba27cfa3353472f662aeb5/README.md#add-attachments which is inconsistent with the main, Since I pass this option on to Meteor's |
Added docs in 69d6b0e. |
The sanitizing reminder was a general thing and not directed at you ;) Thanks for your effort! |
No worries! Do the changes in the commit above work well now, you think? |
Yes! 👍 |
Sweet! Thanks again. |
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:
Not working for me:
Note the different case
fileName
vs.filename
andfilePath
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!
The text was updated successfully, but these errors were encountered: