1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-07-06 04:20:36 +00:00

fix support for non authenticated smtp use, update documentation

This commit is contained in:
eleith 2011-06-05 20:23:04 -07:00
parent 1edd8fe756
commit ad53613bae
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
#v0.1.12
#v0.1.13
### emailjs
@ -80,7 +80,7 @@ send emails, html and attachments from node.js to any smtp server
// options is an object with the following keys
options =
{
username // username for logging into smtp
user // username for logging into smtp
password // password for logging into smtp
host // smtp host
port // smtp port (if null a standard port number will be used)

View File

@ -1,7 +1,7 @@
{
"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",
"contributors": ["izuzak"],
"repository":

View File

@ -43,7 +43,7 @@ Client.prototype =
{
if(!err)
{
var login = function(err)
var begin = function(err)
{
if(!err)
self._poll();
@ -53,10 +53,10 @@ Client.prototype =
};
if(!self.smtp.authorized())
self.smtp.login(login);
self.smtp.login(begin);
else
self._poll();
self.smtp.ehlo_or_helo_if_needed(begin);
}
else
stack.callback(err, stack.message);
@ -161,4 +161,4 @@ exports.Client = Client;
exports.connect = function(server)
{
return new Client(server);
}
};