projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sanitize inputs on server side
[vchess.git]
/
server
/
utils
/
mailer.js
diff --git
a/server/utils/mailer.js
b/server/utils/mailer.js
index
8a059da
..
86e647c
100644
(file)
--- 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 = {
// 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,
to: to,
subject: subject,
text: body,
+ replyTo: from,
};
// Send mail with the defined transport object
};
// Send mail with the defined transport object