Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "emailjs", | ||
"description": "send emails, html and attachments from node.js to any smtp server", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": "eleith", | ||
@@ -6,0 +6,0 @@ "contributors" : [ |
@@ -73,3 +73,3 @@ var smtp = require('./smtp'); | ||
if(!(msg instanceof message.Message) && msg.from && msg.to && msg.text) | ||
msg = message.create(msg.text, msg); | ||
msg = message.create(msg); | ||
@@ -76,0 +76,0 @@ if(msg instanceof message.Message && msg.valid()) |
@@ -288,5 +288,5 @@ var stream = require('stream'); | ||
exports.Message = Message; | ||
exports.create = function(text, headers) | ||
exports.create = function(headers) | ||
{ | ||
return new Message(text, headers); | ||
return new Message(headers); | ||
}; |
42051