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

Commit

Permalink
Update README on MailComposer attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbrook authored Jul 4, 2016
1 parent 51d982f commit 69d6b0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,13 @@ Please inspect the provided sample code for details.
cc: 'Name <[email protected]>', // Optional.
bcc: 'Name <[email protected]>', // Optional.
data: {}, // Optional. Render your email with a data object.
attachments: [] // Optional. Attach files using a mailcomposer format, as an array of objects. Read more here: http://docs.meteor.com/#/full/email_send and here: https://github.com/nodemailer/mailcomposer#attachments
attachments: [] // Optional. Attach files using a mailcomposer format, as an array of objects.
// Read more here: http://docs.meteor.com/#/full/email_send and here: https://github.com/nodemailer/mailcomposer/blob/7c0422b2de2dc61a60ba27cfa3353472f662aeb5/README.md#add-attachments
}
```

*Note:* The official MailComposer README section on Attachment is apparently incorrect, as documented in [#69](https://github.com/lookback/meteor-emails/issues/69), or Meteor's `Email` is using an outdated version (probably the latter). So use `fileName`, `filePath`, etc. instead of `filename`, `path`, etc. when sending attachment objects.

## Usage

### Setting up templates
Expand Down

0 comments on commit 69d6b0e

Please sign in to comment.