UNPKG
gbox-notification
Version:
latest (2.0.5)
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Email temaplates and notifications
gbox-notification
/
service
/
createEmail.js
11 lines
(8 loc)
•
300 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
let
helper =
require
(
'./helper'
);
let
email =
require
(
'./sendEmail'
);
module
.
exports
=
function
(
key, emails, data
) { helper.
groupEmails
(emails).
forEach
(
(
val
) =>
{
// TO DO - Send emails in intervals
email.
sendEmail
(key.
toLowerCase
(), val.
emails
, val.
language
, data); }) };