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 generateRandomDigits
} = require('../plugins/controllersHelperFunctions') } = require('../plugins/controllersHelperFunctions')
const _faSr = _sr.fa 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({ const transporter = nodemailer.createTransport({
host: 'smtp.c1.liara.email', host: 'smtps.danakcorp.com',
port: 587, port: 465,
secure: false, // true for 465, false for other ports secure: true, // true for 465, false for other ports
auth: { auth: {
user: 'boring_bouman_81kd95', user: 'info@asan-service.com',
pass: 'ec9e96d3-6108-4ca5-97a9-39fff09d3557' pass: 'Ss123456?'
}, },
tls: { tls: {
rejectUnauthorized: false rejectUnauthorized: false
+1
View File
@@ -2,6 +2,7 @@
const mongoose = require('mongoose') 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. // 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 = const outHostUrl =
// 'mongodb://localhost:27017/asanserv_database?authSource=admin'
'mongodb://root:9a82d91402ee06cb@danak-db-public.danakcorp.com:52694/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 outHostUrl = 'mongodb://root:KPTt76tImNBBMm4Kor8QA9gB@hotaka.liara.cloud:33794/asanserv_database?authSource=admin'
const inHostUrl = const inHostUrl =