our smtp server, every thing works as intended
This commit is contained in:
parent
a0eb8e1ed8
commit
fa9e7e6db3
22
backend/.env
22
backend/.env
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user