change to smtp mailer

This commit is contained in:
Ammar Qaffaf
2024-02-27 04:26:03 +03:00
parent 1bfcbf0904
commit 563278170c
4 changed files with 19 additions and 17 deletions

View File

@ -3,7 +3,10 @@ import { registerAs } from '@nestjs/config';
export default registerAs(
'email-config',
(): Record<string, any> => ({
EMAIL_ID: process.env.EMAIL_USER,
PASSWORD: process.env.EMAIL_PASSWORD,
SMTP_HOST: process.env.SMTP_HOST,
SMTP_PORT: parseInt(process.env.SMTP_PORT),
SMTP_SECURE: process.env.SMTP_SECURE === 'true',
SMTP_USER: process.env.SMTP_USER,
SMTP_PASSWORD: process.env.SMTP_PASSWORD,
}),
);