mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 07:25:46 +01:00
fixed issue with no 'from' name when using NodeMailer
This commit is contained in:
@@ -114,6 +114,10 @@ var async = require('async'),
|
||||
data.text = data.plaintext;
|
||||
delete data.plaintext;
|
||||
|
||||
// NodeMailer uses a combined "from"
|
||||
data.from = data.from_name + '<' + data.from + '>';
|
||||
delete data.from_name;
|
||||
|
||||
winston.verbose('[emailer] Sending email to uid ' + data.uid);
|
||||
transports[transports.gmail ? 'gmail' : 'direct'].sendMail(data, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user