nodemailer-smtp-transport
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -41,6 +41,6 @@ 'use strict'; | ||
* | ||
* @param {Object} builder BuildMail object | ||
* @param {Object} mail Mail object | ||
* @param {Function} callback Callback function | ||
*/ | ||
SMTPTransport.prototype.send = function(builder, callback) { | ||
SMTPTransport.prototype.send = function(mail, callback) { | ||
var connection = new SMTPConnection(this.options), | ||
@@ -58,3 +58,3 @@ returned = false; | ||
var sendMessage = function() { | ||
connection.send(builder.getEnvelope(), builder.createReadStream(), function(err, info) { | ||
connection.send(mail.data.envelope || mail.message.getEnvelope(), mail.message.createReadStream(), function(err, info) { | ||
if (returned) { | ||
@@ -61,0 +61,0 @@ return; |
{ | ||
"name": "nodemailer-smtp-transport", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "SMTP transport for Nodemailer", | ||
@@ -22,3 +22,3 @@ "main": "lib/smtp-transport.js", | ||
}, | ||
"homepage": "https://github.com/andris9/nodemailer-smtp-transport", | ||
"homepage": "http://github.com/andris9/nodemailer-smtp-transport", | ||
"dependencies": { | ||
@@ -25,0 +25,0 @@ "smtp-connection": "^0.1.3", |
6010