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

Commit d441cc6

Browse files
committed
Allow array of strings in to, bcc, cc, and replyTo options to sendEmail
1 parent 7bfdff6 commit d441cc6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: lib/mailer.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ const factory = (options) => {
225225
// including the template name and optional data object.
226226
const sendEmail = (sendOptions) => {
227227
check(sendOptions, {
228-
to: String,
228+
to: Match.OneOf(String, [String]),
229229
subject: String,
230230
template: String,
231-
cc: Match.Optional(String),
232-
bcc: Match.Optional(String),
233-
replyTo: Match.Optional(String),
231+
cc: Match.Optional(Match.OneOf(String, [String])),
232+
bcc: Match.Optional(Match.OneOf(String, [String])),
233+
replyTo: Match.Optional(Match.OneOf(String, [String])),
234234
from: Match.Optional(String),
235235
data: Match.Optional(Object),
236236
headers: Match.Optional(Object)

0 commit comments

Comments
 (0)