1 | var sendmail = require('../sendmail')({
|
2 | devHost:'localhost',
|
3 | devPort: 1025
|
4 | })
|
5 |
|
6 | sendmail({
|
7 | from: 'test@yourdomain.com',
|
8 | to: 'info@yourdomain.com',
|
9 | replyTo: 'jason@yourdomain.com',
|
10 | subject: 'MailComposer sendmail',
|
11 | html: 'Mail of test sendmail '
|
12 | }, function (err, reply) {
|
13 | console.log(err && err.stack)
|
14 | console.dir(reply)
|
15 | }) |
\ | No newline at end of file |