nodejs-nodemailer-outlook
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -21,2 +21,3 @@ var nodemailer = require('nodemailer'); | ||
from: options.from, | ||
replyTo: options.replyTo, | ||
to: options.to, | ||
@@ -23,0 +24,0 @@ subject: options.subject, |
{ | ||
"name": "nodejs-nodemailer-outlook", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Simple integration between nodeJS and outlook.office365", | ||
@@ -5,0 +5,0 @@ "main": "nodejs-nodemailer-outlook.js", |
@@ -15,9 +15,11 @@ # NodeJS Nodemailer Outlook | ||
auth: { | ||
user: "johnexample@organization.com", | ||
pass: "johnpassword" | ||
}, from: 'info@myorganization.com', | ||
to: 'jackexample@organization.com', | ||
user: "sender@outlook.com", | ||
pass: "********" | ||
}, | ||
from: 'sender@outlook.com', | ||
to: 'receiver@gmail.com', | ||
subject: 'Hey you, awesome!', | ||
html: '<b>This is bold text</b>', | ||
text: 'This is text version!', | ||
replyTo: 'receiverXXX@gmail.com', | ||
attachments: [ | ||
@@ -82,3 +84,2 @@ { | ||
- ```secure``` : false for TLS - as a boolean not string | ||
- ```to``` (<span style='color:red;'>Required</span> if no `cc` or `bcc` are provided): Comma separated emails represent the target recipients. | ||
@@ -90,2 +91,3 @@ - ```cc``` (<span style='color:red;'>Required</span> if no `to` or `bcc` are provided): Comma separated emails represent the target carbon copy (CC) recipients. | ||
- ```html``` (Optional): Email html body version. | ||
- ```replyTo```: An email address that will appear on the Reply-To: field | ||
- ```attachments``` (Optional): JSON array of attachments. | ||
@@ -101,3 +103,3 @@ - ```onError``` (Optional): Error callback with argument error object. | ||
Current version : 1.0.8 | ||
Current version : 1.1.0 | ||
@@ -104,0 +106,0 @@ ## Authors |
@@ -1,11 +0,13 @@ | ||
var nodeoutlook = require('.././outlook') | ||
var nodeoutlook = require('.././nodejs-nodemailer-outlook.js') | ||
nodeoutlook.sendEmail({ | ||
auth: { | ||
user: "johnexample@organization.com", | ||
pass: "johnpassword" | ||
}, from: 'info@myorganization.com', | ||
to: 'jackexample@organization.com', | ||
user: "sender@outlook.com", | ||
pass: "********" | ||
}, from: 'sender@outlook.com', | ||
to: 'receiver@gmail.com', | ||
subject: 'Hey you, awesome!', | ||
html: '<b>This is bold text</b>', | ||
text: 'This is text version!' | ||
text: 'This is text version!', | ||
onError: e => console.log(e), | ||
onSuccess: i => console.log(i) | ||
}); |
7328
48
115