our smtp server, every thing works as intended

This commit is contained in:
dimitar 2025-02-25 21:11:09 +01:00
parent a0eb8e1ed8
commit fa9e7e6db3
3 changed files with 17 additions and 15 deletions

View File

@ -13,16 +13,16 @@ AWS_S3_BUCKET_NAME=imk-data
AWS_ENDPOINT_URL=https://eu2.contabostorage.com
#Email Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=taratur@gmail.com
SMTP_PASS=dziy nccc svgg bovb
EMAIL_FROM=taratur@gmail.com
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USER=taratur@gmail.com
# SMTP_PASS=dziy nccc svgg bovb
# EMAIL_FROM=taratur@gmail.com
# SMTP_HOST=imk.mk
# SMTP_PORT=465
# SMTP_USER=mailer@imk.mk
# SMTP_PASSWORD=76Avtostoperski76
# SMTP_FROM=mailer@imk.mk
SMTP_HOST=imk.mk
SMTP_PORT=465
SMTP_USER=mailer@imk.mk
SMTP_PASS=76Avtostoperski76
SMTP_FROM=mailer@imk.mk
# FRONTEND_URL=https://imk.mk
# ADMIN_EMAIL=petrovskidimitar@yandex.com
EMAIL_FROM=petrovskidimitar@yandex.com

View File

@ -24,9 +24,11 @@ export class EmailService {
// Create transporter with Gmail settings
this.transporter = nodemailer.createTransport({
host: 'smtp.gmail.com',
port: 587, // Use STARTTLS port
secure: false, // Use STARTTLS
// host: 'smtp.gmail.com',
// port: 587, // Use STARTTLS port
// secure: false, // Use STARTTLS
host: host,
port: port,
auth: { user, pass },
debug: true, // Enable debug logs
logger: true // Enable transport level logging

View File

@ -61,7 +61,7 @@ export const downloadDocument = async (key) => {
export const createUser = (userData) => {
return api.post('/auth/register', {
return api.post('/admin/users', {
name: userData.name,
email: userData.email,
password: userData.password,