From cc5a4cbe33a5b2147bf13dc10d16a10bbe8cde23 Mon Sep 17 00:00:00 2001 From: andreas-unleash Date: Tue, 23 Jan 2024 14:32:40 +0200 Subject: [PATCH] fix: add unleash to default email sender string (#6002) Adds "Unleash" to the "noreply@getunleash.io" for default email sender --------- Signed-off-by: andreas-unleash --- src/lib/__snapshots__/create-config.test.ts.snap | 2 +- src/lib/create-config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/__snapshots__/create-config.test.ts.snap b/src/lib/__snapshots__/create-config.test.ts.snap index c8f79e6033..388ad255b3 100644 --- a/src/lib/__snapshots__/create-config.test.ts.snap +++ b/src/lib/__snapshots__/create-config.test.ts.snap @@ -57,7 +57,7 @@ exports[`should create default config 1`] = ` "host": undefined, "port": 587, "secure": false, - "sender": "noreply@getunleash.io", + "sender": "Unleash ", "smtppass": undefined, "smtpuser": undefined, }, diff --git a/src/lib/create-config.ts b/src/lib/create-config.ts index c5383d029a..8ee28b38df 100644 --- a/src/lib/create-config.ts +++ b/src/lib/create-config.ts @@ -270,7 +270,7 @@ const defaultEmail: IEmailOption = { host: process.env.EMAIL_HOST, secure: parseEnvVarBoolean(process.env.EMAIL_SECURE, false), port: parseEnvVarNumber(process.env.EMAIL_PORT, 587), - sender: process.env.EMAIL_SENDER || 'noreply@getunleash.io', + sender: process.env.EMAIL_SENDER || 'Unleash ', smtpuser: process.env.EMAIL_USER, smtppass: process.env.EMAIL_PASSWORD, };