diff --git a/.env.sample b/.env.sample index ca12af1..9524629 100644 --- a/.env.sample +++ b/.env.sample @@ -8,3 +8,5 @@ FRIENDLY_CAPTCHA_SECRET= # SMTP SMTP_URL=smtp://localhost:587 +SMTP_FROM=test@test.com + diff --git a/src/app.module.ts b/src/app.module.ts index 6413bad..5dd4cd8 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -32,7 +32,7 @@ import { migrations } from './migrations'; useFactory: async (config: ConfigService) => ({ transport: config.get('SMTP_URL'), defaults: { - from: '"Signalements adresse" ', + from: config.get('SMTP_FROM'), }, template: { dir: __dirname + '/email-templates',