nodejs-nodemailer-outlook
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -6,5 +6,5 @@ var nodemailer = require('nodemailer'); | ||
throw new Error("Options can not be null"); | ||
}else if(!options.auth){ | ||
} else if(!options.auth) { | ||
throw new Error("Options.auth{user,pass} can not be null"); | ||
}else if(!options.auth.user || !options.auth.pass){ | ||
} else if(!options.auth.user || !options.auth.pass) { | ||
throw new Error("Options.auth.user or Options.auth.password can not be null"); | ||
@@ -20,20 +20,22 @@ | ||
}); | ||
transporter.sendMail({ | ||
from: options.from, | ||
replyTo: options.replyTo, | ||
to: options.to, | ||
subject: options.subject, | ||
cc:options.cc, | ||
bcc:options.bcc, | ||
text:options.text, | ||
html:options.html, | ||
attachments:options.attachments, | ||
}, function (err, info) { | ||
if (err && options.onError) { | ||
options.onError(err); | ||
} | ||
else if(options.onSuccess) { | ||
options.onSuccess(info); | ||
} | ||
}); | ||
transporter.sendMail({ | ||
from: options.from, | ||
sender: options.sender, | ||
replyTo: options.replyTo, | ||
to: options.to, | ||
subject: options.subject, | ||
cc:options.cc, | ||
bcc:options.bcc, | ||
text:options.text, | ||
html:options.html, | ||
attachments:options.attachments, | ||
}, function (err, info) { | ||
if (err && options.onError) { | ||
options.onError(err); | ||
} | ||
else if(options.onSuccess) { | ||
options.onSuccess(info); | ||
} | ||
}); | ||
} | ||
{ | ||
"name": "nodejs-nodemailer-outlook", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Simple integration between nodeJS and outlook.office365", | ||
@@ -16,4 +16,4 @@ "main": "nodejs-nodemailer-outlook.js", | ||
"dependencies": { | ||
"nodemailer": "^4.4.1" | ||
"nodemailer": "^6.4.16" | ||
} | ||
} |
18788
50
+ Addednodemailer@6.10.0(transitive)
- Removednodemailer@4.7.0(transitive)
Updatednodemailer@^6.4.16