Do not send adminEmail for feedback mails

This commit is contained in:
Johannes Zellner
2015-08-04 14:56:43 +02:00
parent 3f0f0048bc
commit c8f6973312
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -3,13 +3,11 @@
New <%= type %> from <%= fqdn %>.
Sender: <%= user.email %>
Admin: <%= adminEmail %>
Sent at: <%= new Date().toUTCString() %>
Subject: <%= subject %>
-----------------------------------------------------------
<%= description %>
-----------------------------------------------------------
<% } else { %>
+1 -1
View File
@@ -295,7 +295,7 @@ function sendFeedback(user, type, subject, description, callback) {
from: config.get('adminEmail'),
to: 'johannes@cloudron.io',
subject: util.format('[%s] %s - %s', type, config.fqdn(), subject),
text: render('feedback.ejs', { fqdn: config.fqdn(), adminEmail: config.get('adminEmail'), type: type, user: user, subject: subject, description: description, format: 'text'})
text: render('feedback.ejs', { fqdn: config.fqdn(), type: type, user: user, subject: subject, description: description, format: 'text'})
};
enqueue(mailOptions);