This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README on MailComposer attachments
- Loading branch information
1 parent
51d982f
commit 69d6b0e
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|