Merge pull request #266 from sc2bigjoe/patch-1

Update smtp.js
master
Gareth Jones 10 years ago
commit a4be20f8e1

@ -34,9 +34,15 @@ function smtpAppender(config, layout) {
var msg = {
to: config.recipients,
subject: config.subject || subjectLayout(firstEvent),
text: body,
headers: { "Hostname": os.hostname() }
};
if (!config.html) {
msg.text = body;
} else {
msg.html = body;
}
if (config.sender) {
msg.from = config.sender;
}

Loading…
Cancel
Save