Comparing version 0.1.12 to 0.1.13
{ | ||
"name": "emailjs", | ||
"description": "send text/html emails and attachments from node.js to any smtp server", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"author": "eleith", | ||
@@ -6,0 +6,0 @@ "contributors": ["izuzak"], |
@@ -1,2 +0,2 @@ | ||
#v0.1.12 | ||
#v0.1.13 | ||
@@ -83,3 +83,3 @@ ### emailjs | ||
{ | ||
username // username for logging into smtp | ||
user // username for logging into smtp | ||
password // password for logging into smtp | ||
@@ -86,0 +86,0 @@ host // smtp host |
@@ -46,3 +46,3 @@ var smtp = require('./smtp'); | ||
{ | ||
var login = function(err) | ||
var begin = function(err) | ||
{ | ||
@@ -57,6 +57,6 @@ if(!err) | ||
if(!self.smtp.authorized()) | ||
self.smtp.login(login); | ||
self.smtp.login(begin); | ||
else | ||
self._poll(); | ||
self.smtp.ehlo_or_helo_if_needed(begin); | ||
} | ||
@@ -166,2 +166,2 @@ else | ||
return new Client(server); | ||
} | ||
}; |
43526