Skip to content

Commit

Permalink
fix: add env variable SMTP_FROM
Browse files Browse the repository at this point in the history
  • Loading branch information
MaGOs92 committed Jul 11, 2024
1 parent fa2f1fc commit 42debcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ FRIENDLY_CAPTCHA_SECRET=

# SMTP
SMTP_URL=smtp://localhost:587
SMTP_FROM=[email protected]

2 changes: 1 addition & 1 deletion src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { migrations } from './migrations';
useFactory: async (config: ConfigService) => ({
transport: config.get('SMTP_URL'),
defaults: {
from: '"Signalements adresse" <[email protected]>',
from: config.get('SMTP_FROM'),
},
template: {
dir: __dirname + '/email-templates',
Expand Down

0 comments on commit 42debcd

Please sign in to comment.