Merge pull request #297 from zoff-music/fix/new-mailing

Using zoff.me instead of zoff.no for mailing now
This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-06 14:10:10 +01:00
committed by GitHub
5 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
## Apps
Under ``` /server/apps/ ```, there are two files, ``` admin.js ``` and ``` client.js ```.``` admin.js ``` are for the adminpanel, and ``` client.js ``` are for zoff itself.
## Events ## Events
### To server ### To server

View File

@@ -14,8 +14,8 @@ function requested_change(type, string, channel) {
var message = "A " + type + " change was requested on <b>" + channel + "</b><br><br>New supposed value is: <br><br><b>" + string + "</b><br><br><br> \ var message = "A " + type + " change was requested on <b>" + channel + "</b><br><br>New supposed value is: <br><br><b>" + string + "</b><br><br><br> \
Go to <a href='https://admin.zoff.me/'>https://admin.zoff.me/</a> to accept or decline the request."; Go to <a href='https://admin.zoff.me/'>https://admin.zoff.me/</a> to accept or decline the request.";
var msg = { var msg = {
from: 'no-reply@zoff.no', from: 'no-reply@zoff.me',
to: 'kasper@zoff.no', to: 'kasper@zoff.me',
subject: 'ZOFF: Requested new ' + type, subject: 'ZOFF: Requested new ' + type,
text: message, text: message,
html: message, html: message,

View File

@@ -27,7 +27,7 @@
We're sorry, but Zoff doesn't seem to be working at the moment. Have you checked your internet connection lately? We're sorry, but Zoff doesn't seem to be working at the moment. Have you checked your internet connection lately?
</p> </p>
<p> <p>
<a href="mailto:contact@zoff.no?Subject=Zoff%20is%20Down" style="color:darkgrey;text-decoration:none;">Contact Us</a> <a href="mailto:contact@zoff.me?Subject=Zoff%20is%20Down" style="color:darkgrey;text-decoration:none;">Contact Us</a>
</p> </p>
</div> </div>
</div> </div>

View File

@@ -254,7 +254,7 @@ var Helper = {
$("#contact-container").html("Mail has been sent, we'll be back with you shortly.") $("#contact-container").html("Mail has been sent, we'll be back with you shortly.")
}else{ }else{
$("#contact-container").empty(); $("#contact-container").empty();
$("#contact-container").html("Something went wrong, sorry about that. You could instead try with your own mail-client: <a title='Open in client' href='mailto:contact@zoff.no?Subject=Contact%20Zoff'>contact@zoff.no</a>") $("#contact-container").html("Something went wrong, sorry about that. You could instead try with your own mail-client: <a title='Open in client' href='mailto:contact@zoff.me?Subject=Contact%20Zoff'>contact@zoff.me</a>")
} }
} }
}); });

View File

@@ -113,8 +113,8 @@ try {
var from = req.body.from; var from = req.body.from;
var message = req.body.message; var message = req.body.message;
var msg = { var msg = {
from: 'no-reply@zoff.no', from: 'no-reply@zoff.me',
to: 'contact@zoff.no', to: 'contact@zoff.me',
subject: 'ZOFF: Contact form webpage', subject: 'ZOFF: Contact form webpage',
text: message, text: message,
html: message, html: message,