mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 22:14:55 +00:00
change to smtp mailer
This commit is contained in:
@ -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,
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user