Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
3 years ago
by
Wolfgang Knopki
Browse files
Options
Download
Email Patches
Plain Diff
Update mailer.js, added NTLM auth
parent
b964d60e
master
MLAB-677
devel
reset-jul13
reset-merge
testing
4 merge requests
!143
updating yml config
,
!95
Prep prod
,
!94
Testing
,
!92
Mlab 522 fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/mailer.js
+13
-3
config/mailer.js
with
13 additions
and
3 deletions
+13
-3
config/mailer.js
+
13
-
3
View file @
5422910a
const
nodemailer
=
require
(
'
nodemailer
'
)
const
nodemailer
=
require
(
'
nodemailer
'
);
const
nodemailerNTLMAuth
=
require
(
'
nodemailer-ntlm-auth
'
);
var
env
=
process
.
env
.
NODE_ENV
||
'
testing
'
;
var
env
=
process
.
env
.
NODE_ENV
||
'
testing
'
;
const
config
=
require
(
'
./config
'
)[
env
]
const
config
=
require
(
'
./config
'
)[
env
]
...
@@ -8,8 +10,16 @@ var smtpTransport = nodemailer.createTransport({
...
@@ -8,8 +10,16 @@ var smtpTransport = nodemailer.createTransport({
secure
:
config
.
mailer
.
secureConnection
,
secure
:
config
.
mailer
.
secureConnection
,
port
:
config
.
mailer
.
port
,
port
:
config
.
mailer
.
port
,
auth
:
{
auth
:
{
type
:
'
custom
'
,
method
:
'
NTLM
'
,
user
:
config
.
mailer
.
authUser
,
user
:
config
.
mailer
.
authUser
,
pass
:
config
.
mailer
.
authPass
pass
:
config
.
mailer
.
authPass
,
options
:
{
domain
:
'
ad
'
}
},
customAuth
:{
NTLM
:
nodemailerNTLMAuth
}
}
});
});
...
@@ -25,4 +35,4 @@ var mailer = {
...
@@ -25,4 +35,4 @@ var mailer = {
options
:
mailOptions
options
:
mailOptions
}
}
module
.
exports
=
mailer
module
.
exports
=
mailer
\ No newline at end of file
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
Menu
Explore
Projects
Groups
Snippets