Do not set credentials if they are undefined.
This commit is contained in:
@@ -122,7 +122,9 @@ class TransportEmailPlugin {
|
||||
).rejectUnauthorized = !ignoreUnauthorized
|
||||
}
|
||||
|
||||
transportConf.auth = { user, pass: password }
|
||||
if (user != null && password != null) {
|
||||
transportConf.auth = { user, pass: password }
|
||||
}
|
||||
|
||||
const transport = createTransport(transportConf)
|
||||
transport.use('compile', markdownCompiler)
|
||||
|
||||
Reference in New Issue
Block a user