cherry-mailer
Advanced tools
Comparing version 0.0.1 to 0.0.2
12
index.js
var nodemailer = require('nodemailer'); | ||
var util = require('util'); | ||
function log(msg) { | ||
console.log("[mailer] " + msg); | ||
} | ||
module.exports = function (cherry) { | ||
@@ -25,5 +29,5 @@ | ||
if(error){ | ||
console.log(error); | ||
log(error); | ||
} else{ | ||
console.log("Trigger sent: " + util.inspect(response)); | ||
log("Trigger sent: " + util.inspect(response)); | ||
}; | ||
@@ -33,8 +37,8 @@ }); | ||
console.log("lightswitch ready to rock"); | ||
log("lightswitch ready to rock"); | ||
cherry.register('email', function (msg) { | ||
console.log(msg); | ||
log(msg); | ||
send(msg.to, msg.subject, msg.body); | ||
}); | ||
}; |
{ | ||
"name": "cherry-mailer", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "cherry plugin sending emails", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1539
34