Merge pull request #449 from 6IRCNet/3.0
Fix email from address and allow changing sender name
This commit is contained in:
commit
cdcace828f
|
|
@ -109,6 +109,7 @@ mail:
|
||||||
user: 'some.user@gmail.com'
|
user: 'some.user@gmail.com'
|
||||||
pass: 'supersecretpassword'
|
pass: 'supersecretpassword'
|
||||||
from-address: 'some.user@gmail.com'
|
from-address: 'some.user@gmail.com'
|
||||||
|
from-name: 'CyTube Services'
|
||||||
|
|
||||||
# GData API v2 developer key (for non-anonymous youtube requests)
|
# GData API v2 developer key (for non-anonymous youtube requests)
|
||||||
youtube-v2-key: ''
|
youtube-v2-key: ''
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,8 @@ var defaults = {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
/* the key "config" is omitted because the format depends on the
|
/* the key "config" is omitted because the format depends on the
|
||||||
service the owner is configuring for nodemailer */
|
service the owner is configuring for nodemailer */
|
||||||
"from-address": "some.user@gmail.com"
|
"from-address": "some.user@gmail.com",
|
||||||
|
"from-name": "CyTube Services"
|
||||||
},
|
},
|
||||||
"youtube-v2-key": "",
|
"youtube-v2-key": "",
|
||||||
"channel-save-interval": 5,
|
"channel-save-interval": 5,
|
||||||
|
|
|
||||||
|
|
@ -621,7 +621,7 @@ function handlePasswordReset(req, res) {
|
||||||
Config.get("http.domain") + "/account/passwordrecover/"+hash;
|
Config.get("http.domain") + "/account/passwordrecover/"+hash;
|
||||||
|
|
||||||
var mail = {
|
var mail = {
|
||||||
from: "CyTube Services <" + Config.get("mail.from") + ">",
|
from: Config.get("mail.from-name") + " <" + Config.get("mail.from-address") + ">",
|
||||||
to: email,
|
to: email,
|
||||||
subject: "Password reset request",
|
subject: "Password reset request",
|
||||||
text: msg
|
text: msg
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue