Skip to content

Commit

Permalink
[api] Plaintext credentials now in use. Added Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed May 24, 2011
1 parent d9be8d7 commit d06ed15
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions Changelog
@@ -0,0 +1,7 @@
node_mailer changelog:

0.6.0 [Breaking]
- Plaintext username/password

0.5.0
- NodeMailer as backing SmtpClient
12 changes: 6 additions & 6 deletions Readme.md
Expand Up @@ -34,16 +34,16 @@
subject : "node_mailer test email",
body: "Hello! This is a test of the node_mailer.",
authentication : "login", // auth login is supported; anything else is no auth
username : "dXNlcm5hbWU=", // Base64 encoded username
password : "cGFzc3dvcmQ=" // Base64 encoded password
username : "my_username", // username
password : "my_password" // password
},
function(err, result){
if(err){ console.log(err); }
});
}

# USING SSL
This fork supports SSL connections (not TLS / STARTTLS, just SSL from the beginning of the connection). To use it,
This fork supports SSL connections. To use it,
add an option ssl: true. See usage above.


Expand Down Expand Up @@ -87,8 +87,8 @@ add an option ssl: true. See usage above.
},

authentication : "login", // auth login is supported; anything else is no auth
username : "dXNlcm5hbWU=", // Base64 encoded username
password : "cGFzc3dvcmQ=" // Base64 encoded password
username : "my_username", // username
password : "my_password" // password
},
function(err, result){
if(err){ console.log(err); }
Expand All @@ -99,5 +99,5 @@ add an option ssl: true. See usage above.

## Authors

Marak Squires, Elijah Insua, Fedor Indutny
Marak Squires, Elijah Insua, Fedor Indutny, Bradley Meck

4 changes: 2 additions & 2 deletions demo-template.js
Expand Up @@ -22,8 +22,8 @@ for(var i = 0; i < 10; i++){
},

authentication : "login", // auth login is supported; anything else is no auth
username : "dXNlcm5hbWU=", // Base64 encoded username
password : "cGFzc3dvcmQ=" // Base64 encoded password
username : undefined, // username
password : undefined // password
},
function(err, result){
if(err){ console.log(err); }
Expand Down
4 changes: 2 additions & 2 deletions demo.js
Expand Up @@ -11,8 +11,8 @@ for(var i = 0; i < 10; i++){
subject : "node_mailer test email",
body: "Hello! This is a test of the node_mailer.",
authentication : "login", // auth login is supported; anything else is no auth
username : undefined, // Base64 encoded username
password : undefined // Base64 encoded password
username : undefined, // username
password : undefined // password
},
function(err, result){
if(err){ console.log(err); }
Expand Down
4 changes: 2 additions & 2 deletions lib/node_mailer.js
Expand Up @@ -59,8 +59,8 @@ exports.send = function node_mail(message,callback) {
port: +message.port,
use_authentication: message.authentication,
ssl: message.ssl,
user: new Buffer(message.username || '', 'base64').toString('utf8'),
pass: new Buffer(message.password || '', 'base64').toString('utf8'),
user: message.username && message.username.toString(),
pass: message.password && message.password.toString(),
debug: true
}
if(message.username || message.password) {
Expand Down

0 comments on commit d06ed15

Please sign in to comment.