set up d-mail as mail server

This commit is contained in:
2025-12-30 12:43:28 +03:30
parent 883c1458a0
commit 50b04a97d4
2 changed files with 20 additions and 5 deletions
+19 -5
View File
@@ -24,14 +24,28 @@ const {
generateRandomDigits
} = require('../plugins/controllersHelperFunctions')
const _faSr = _sr.fa
// Liara
// const transporter = nodemailer.createTransport({
// host: 'smtp.c1.liara.email',
// port: 587,
// secure: false, // true for 465, false for other ports
// auth: {
// user: 'boring_bouman_81kd95',
// pass: 'ec9e96d3-6108-4ca5-97a9-39fff09d3557'
// },
// tls: {
// rejectUnauthorized: false
// }
// })
// Our DMAIL
const transporter = nodemailer.createTransport({
host: 'smtp.c1.liara.email',
port: 587,
secure: false, // true for 465, false for other ports
host: 'smtps.danakcorp.com',
port: 465,
secure: true, // true for 465, false for other ports
auth: {
user: 'boring_bouman_81kd95',
pass: 'ec9e96d3-6108-4ca5-97a9-39fff09d3557'
user: 'info@asan-service.com',
pass: 'Ss123456?'
},
tls: {
rejectUnauthorized: false