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

Commit ec47f09

Browse files
cubicuboctahedronjohanbrook
authored andcommitted
Attachments support (#60)
* Added attachments support * Updated readme
1 parent d32e653 commit ec47f09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ Please inspect the provided sample code for details.
112112
from: 'Name <[email protected]>', // Override global 'From: ' option.
113113
cc: 'Name <[email protected]>', // Optional.
114114
bcc: 'Name <[email protected]>', // Optional.
115-
data: {} // Optional. Render your email with a data object.
115+
data: {}, // Optional. Render your email with a data object.
116+
attachments: {} // Optional. Attach files using a mailcomposer format.
116117
}
117118
```
118119

lib/mailer.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ const factory = (options) => {
233233
replyTo: Match.Optional(Match.OneOf(String, [String])),
234234
from: Match.Optional(String),
235235
data: Match.Optional(Object),
236-
headers: Match.Optional(Object)
236+
headers: Match.Optional(Object),
237+
attachments: Match.Optional([Object])
237238
});
238239

239240
const defaults = {

0 commit comments

Comments
 (0)