Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
dcec40f2
Commit
dcec40f2
authored
3 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
log error
parent
658dd4d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/public.js
+4
-3
routes/public.js
with
4 additions
and
3 deletions
+4
-3
routes/public.js
+
4
-
3
View file @
dcec40f2
...
...
@@ -80,7 +80,7 @@ module.exports = function (app, config, lang) {
mailer
.
options
.
html
=
emailContent
;
mailer
.
transport
.
sendMail
(
mailer
.
options
,
function
(
err
)
{
if
(
err
)
{
console
.
log
(
'
cannot send email
'
)
console
.
error
(
'
cannot send email
'
)
throw
err
}
})
...
...
@@ -278,11 +278,12 @@ module.exports = function (app, config, lang) {
mailer
.
options
.
subject
=
emailSubject
;
mailer
.
options
.
text
=
emailContent
;
mailer
.
transport
.
sendMail
(
mailer
.
options
,
function
(
err
)
{
done
(
err
,
'
done
'
);
});
done
(
err
,
'
done
'
);
});
}
],
function
(
err
)
{
if
(
err
)
{
console
.
error
(
err
)
res
.
flash
(
'
error
'
,
'
Ein Fehler ist aufgetreten. Bitte versuchen Sie es erneut.
'
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment