andris9/Nodemailer — pull request #86 by remichael (2012-05-06 09:20:39+00:00)
Title: Support for additional sendmail parameters

Changed sendmail transport configuration:

Now lets you add additional sendmail parameter (like ["-f sender@example.com"] to change the envelope sender address (Return-Path)).

Examples:

var transport = nodemailer.createTransport("Sendmail", {
path: "/usr/sbin/sendmail",
args: ["-f sender@example.com"]
});
var transport = nodemailer.createTransport("Sendmail", {
args: ["-f sender@example.com"]
});
var transport = nodemailer.createTransport("Sendmail", {
path: "/usr/sbin/sendmail",
});
var transport = nodemailer.createTransport("Sendmail", "/usr/sbin/sendmail");
var transport = nodemailer.createTransport("Sendmail");