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

Attachments support #60

Merged
merged 2 commits into from
Apr 19, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ Please inspect the provided sample code for details.
from: 'Name <[email protected]>', // Override global 'From: ' option.
cc: 'Name <[email protected]>', // Optional.
bcc: 'Name <[email protected]>', // Optional.
data: {} // Optional. Render your email with a data object.
data: {}, // Optional. Render your email with a data object.
attachments: {} // Optional. Attach files using a mailcomposer format.
}
```

Expand Down
3 changes: 2 additions & 1 deletion lib/mailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ const factory = (options) => {
replyTo: Match.Optional(Match.OneOf(String, [String])),
from: Match.Optional(String),
data: Match.Optional(Object),
headers: Match.Optional(Object)
headers: Match.Optional(Object),
attachments: Match.Optional([Object])
});

const defaults = {
Expand Down