diff --git a/src/targets/services/monthlyReportNotification.ts b/src/targets/services/monthlyReportNotification.ts index 672132e5726827f24949540b330877f5fb06bfc0..a89b7c2ca763ed16f06ede878e907e1e922a4424 100644 --- a/src/targets/services/monthlyReportNotification.ts +++ b/src/targets/services/monthlyReportNotification.ts @@ -204,6 +204,7 @@ const monthlyReportNotification = async ({ logStack('info', 'Creation of mail...') const mailService = new MailService() + const envService = new EnvironmentService() const today = DateTime.local().setZone('utc', { keepLocalTime: true, @@ -290,7 +291,7 @@ const monthlyReportNotification = async ({ }) const mailData = { - mode: 'campaign', + mode: envService.isProduction() ? 'campaign' : 'noreply', subject: monthlyReport.subject, parts: [ {