Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #22 with STARTTLS _ssl object not set

  • Loading branch information...
commit 664e0509d1c05db529a3ffec109925a10d4280da 1 parent 261de3c
andris9 authored
Showing with 6 additions and 5 deletions.
  1. +2 −1  .gitignore
  2. +2 −2 lib/mail.js
  3. +1 −1  lib/starttls.js
  4. +1 −1  package.json
View
3  .gitignore
@@ -1 +1,2 @@
-node_modules
+node_modules
+npm-debug.log
View
4 lib/mail.js
@@ -7,7 +7,7 @@ var SMTPClient = exports.SMTPClient = require("./smtp").SMTPClient,
* Version constants
*/
var X_MAILER_NAME = "Nodemailer",
- X_MAILER_VERSION = "0.1.13; +http://www.nodemailer.org";
+ X_MAILER_VERSION = "0.1.14; +http://www.nodemailer.org";
/**
* mail
@@ -450,7 +450,7 @@ EmailMessage.prototype.send = function(callback){
var instanceId = ++instancecounter;
if(this.debug){
- var str = X_MAILER_NAME+", "+X_MAILER_VERSION+": "+instanceId;
+ var str = X_MAILER_NAME+", "+X_MAILER_VERSION+", Node.js "+process.version+": "+instanceId;
console.log(str);
console.log(Array(str.length+1).join("=")+"\n");
}
View
2  lib/starttls.js
@@ -21,7 +21,7 @@ module.exports = function starttls(socket, options, cb) {
cleartext = pipe(pair, socket);
pair.on('secure', function() {
- var verifyError = pair._ssl.verifyError();
+ var verifyError = !pair._ssl || pair._ssl.verifyError();
if (verifyError) {
cleartext.authorized = false;
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "nodemailer",
"description": "Easy to use module to send e-mails, supports unicode and SSL/TLS",
- "version": "0.1.13",
+ "version": "0.1.14",
"author" : "Andris Reinman",
"maintainers":[
{
Please sign in to comment.
Something went wrong with that request. Please try again.