X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Futils%2Fmailer.js;h=86e647c2a1776b0c40307680d9ebcd67617e4b52;hp=8a059da28c8c935a19f7bb64a20a780cd37713ca;hb=58e7b94e6e1a8d5721b9211b45c40e65fc13f600;hpb=d36ca1989daec86e5ad4b2e65c8a045af171fafd diff --git a/server/utils/mailer.js b/server/utils/mailer.js index 8a059da2..86e647c2 100644 --- a/server/utils/mailer.js +++ b/server/utils/mailer.js @@ -26,10 +26,11 @@ module.exports = function(from, to, subject, body, cb) // Setup email data with unicode symbols const mailOptions = { - from: from, //note: some SMTP serves might forbid this + from: params.mail.noreply, to: to, subject: subject, text: body, + replyTo: from, }; // Send mail with the defined transport object