diff --git a/package.json b/package.json index df59534..bec7c06 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Tim Marshall ", "name": "postmarkapi", "description": "Complete Postmark REST API wrapper", - "version": "0.0.3", + "version": "0.0.4", "main": "./src/pmk.js", "engines": { "node": ">=0.10.20" @@ -13,4 +13,4 @@ "async": "0.7.0" }, "repository": "git://github.com/MadisonReed/postmarkapi" -} \ No newline at end of file +} diff --git a/src/pmk.js b/src/pmk.js index a01801f..e0d782e 100644 --- a/src/pmk.js +++ b/src/pmk.js @@ -62,10 +62,8 @@ PMK.prototype.email = function(message, callback) { if (!message.to) { callback(new PMKError('\'to\' email address not set')); return; - } else if (!message.subject) { - callback(new PMKError('\'subject\' for email not set')); - return; - } else if (!message.text && !message.html) { + } + if (!message.text && !message.html) { callback(new PMKError('email content (\'text\', \'html\') not set')); return; } @@ -265,7 +263,7 @@ PMK.prototype.bounceTags = function(callback) { PMK.prototype.bounceActivate = function(id, callback) { callback = callback || noOp; - this.put('bounces/' + id + '/active', callback); + this.put('bounces/' + id + '/activate', callback); }; /**