mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Error-reporting over mail also
This commit is contained in:
@@ -114,12 +114,16 @@ try {
|
||||
res.sendStatus(500);
|
||||
return;
|
||||
} else {
|
||||
var subject = 'ZOFF: Contact form webpage';
|
||||
if(req.body.error_report) {
|
||||
subject = 'ZOFF: Error report';
|
||||
}
|
||||
var from = req.body.from;
|
||||
var message = req.body.message;
|
||||
var msg = {
|
||||
from: 'no-reply@zoff.me',
|
||||
to: 'contact@zoff.me',
|
||||
subject: 'ZOFF: Contact form webpage',
|
||||
from: mailconfig.from,
|
||||
to: mailconfig.to,
|
||||
subject: subject,
|
||||
text: message,
|
||||
html: message,
|
||||
replyTo: from
|
||||
|
||||
Reference in New Issue
Block a user