-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.js
More file actions
28 lines (28 loc) · 737 Bytes
/
test.js
File metadata and controls
28 lines (28 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Created by intelligrape on 2/7/14.
*/
var BulkMailer = require("./bulkmailer");
var options = {
transport: {
service: 'Gmail',
auth: {
user: 'deepak.vishwakarma@tothenew.com',
pass: 'xxxxx@xxx'
}
},
verbose: true
};
var bulkMailer = new BulkMailer(options)
var mailOptions = {
from: 'Deepak ✔ <deepak.vishwakarma@tothenew.com>',
to: 'deepak.vishwakarma@tothenew.com,vineeta.sharma@tothenew.com',
subject: 'hello',
text: 'hello world!'
}
bulkMailer.send(mailOptions, true, function (error, result) { // arg1: mailinfo, agr2: parallel mails, arg3: callback
if (error) {
console.error(error);
} else {
console.info(result);
}
});