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
5422910a
Commit
5422910a
authored
Jun 08, 2021
by
Wolfgang Knopki
Browse files
Update mailer.js, added NTLM auth
parent
b964d60e
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/mailer.js
View file @
5422910a
const
nodemailer
=
require
(
'
nodemailer
'
)
const
nodemailer
=
require
(
'
nodemailer
'
);
const
nodemailerNTLMAuth
=
require
(
'
nodemailer-ntlm-auth
'
);
var
env
=
process
.
env
.
NODE_ENV
||
'
testing
'
;
const
config
=
require
(
'
./config
'
)[
env
]
...
...
@@ -8,8 +10,16 @@ var smtpTransport = nodemailer.createTransport({
secure
:
config
.
mailer
.
secureConnection
,
port
:
config
.
mailer
.
port
,
auth
:
{
type
:
'
custom
'
,
method
:
'
NTLM
'
,
user
:
config
.
mailer
.
authUser
,
pass
:
config
.
mailer
.
authPass
pass
:
config
.
mailer
.
authPass
,
options
:
{
domain
:
'
ad
'
}
},
customAuth
:{
NTLM
:
nodemailerNTLMAuth
}
});
...
...
@@ -25,4 +35,4 @@ var mailer = {
options
:
mailOptions
}
module
.
exports
=
mailer
\ No newline at end of file
module
.
exports
=
mailer
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