make box code send emails with STARTTLS
This commit is contained in:
@@ -76,7 +76,8 @@ function sendMail(mailOptions, callback) {
|
||||
auth: {
|
||||
user: mailOptions.authUser || `no-reply@${settings.adminDomain()}`,
|
||||
pass: data.relayToken
|
||||
}
|
||||
},
|
||||
tls: { rejectUnauthorized: false }
|
||||
}));
|
||||
|
||||
transport.sendMail(mailOptions, function (error) {
|
||||
|
||||
Reference in New Issue
Block a user