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
+1
View File
@@ -2,6 +2,7 @@
const mongoose = require('mongoose')
// mongodb database connection string. change it as per your needs. here "mydb" is the name of the database. You don't need to create DB from mongodb terminal. mongoose create the database automatically.
const outHostUrl =
// 'mongodb://localhost:27017/asanserv_database?authSource=admin'
'mongodb://root:9a82d91402ee06cb@danak-db-public.danakcorp.com:52694/asanserv_database?authSource=admin'
// const outHostUrl = 'mongodb://root:KPTt76tImNBBMm4Kor8QA9gB@hotaka.liara.cloud:33794/asanserv_database?authSource=admin'
const inHostUrl =