Skip to content

Commit

Permalink
use args for sendmail, fixes #129
Browse files Browse the repository at this point in the history
  • Loading branch information
andris9 committed Feb 1, 2013
1 parent 4ced4c4 commit 40524e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/example_sendmail.js
Expand Up @@ -12,7 +12,7 @@ var message = {
from: 'Sender Name <sender@example.com>',

// Comma separated list of recipients
to: '"Receiver Name" <receiver@example.com>',
to: '"Receiver Name" <nodemailer@disposebox.com>',

// Subject of the message
subject: 'Nodemailer is unicode friendly ✔', //
Expand Down
2 changes: 1 addition & 1 deletion lib/engines/sendmail.js
Expand Up @@ -35,7 +35,7 @@ function SendmailTransport(config){
SendmailTransport.prototype.sendMail = function(emailMessage, callback) {

var envelope = emailMessage.getEnvelope();
var sendmail = spawn(this.path, ["-f"].concat(envelope.from).concat(envelope.to));
var sendmail = spawn(this.path, this.args || ["-f"].concat(envelope.from).concat(envelope.to));

sendmail.on('exit', function (code) {
var msg = "Sendmail exited with "+code;
Expand Down

0 comments on commit 40524e1

Please sign in to comment.