mirror of https://github.com/calzoneman/sync.git
Fixed email not getting sent from correct email in config. Added way to
change the default name (CyTube Services) that email is sent from.
This commit is contained in:
parent
bed10ec8a9
commit
407f8930c3
|
@ -109,6 +109,7 @@ mail:
|
|||
user: 'some.user@gmail.com'
|
||||
pass: 'supersecretpassword'
|
||||
from-address: 'some.user@gmail.com'
|
||||
from-name: 'CyTube Services'
|
||||
|
||||
# GData API v2 developer key (for non-anonymous youtube requests)
|
||||
youtube-v2-key: ''
|
||||
|
|
|
@ -54,6 +54,7 @@ var defaults = {
|
|||
/* the key "config" is omitted because the format depends on the
|
||||
service the owner is configuring for nodemailer */
|
||||
"from-address": "some.user@gmail.com"
|
||||
"from-name": "CyTube Services"
|
||||
},
|
||||
"youtube-v2-key": "",
|
||||
"channel-save-interval": 5,
|
||||
|
|
|
@ -621,7 +621,7 @@ function handlePasswordReset(req, res) {
|
|||
Config.get("http.domain") + "/account/passwordrecover/"+hash;
|
||||
|
||||
var mail = {
|
||||
from: "CyTube Services <" + Config.get("mail.from") + ">",
|
||||
from: Config.get("mail.from-name") + " <" + Config.get("mail.from-address") + ">",
|
||||
to: email,
|
||||
subject: "Password reset request",
|
||||
text: msg
|
||||
|
|
Loading…
Reference in New Issue