Skip to content

Commit

Permalink
fix: add unleash to default email sender string (#6002)
Browse files Browse the repository at this point in the history
Adds "Unleash" to the "noreply@getunleash.io" for default email sender

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
  • Loading branch information
andreas-unleash committed Jan 23, 2024
1 parent db93ab5 commit cc5a4cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/__snapshots__/create-config.test.ts.snap
Expand Up @@ -57,7 +57,7 @@ exports[`should create default config 1`] = `
"host": undefined,
"port": 587,
"secure": false,
"sender": "noreply@getunleash.io",
"sender": "Unleash <noreply@getunleash.io>",
"smtppass": undefined,
"smtpuser": undefined,
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/create-config.ts
Expand Up @@ -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 <noreply@getunleash.io>',
smtpuser: process.env.EMAIL_USER,
smtppass: process.env.EMAIL_PASSWORD,
};
Expand Down

0 comments on commit cc5a4cb

Please sign in to comment.