mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-06 04:31:50 +02:00
⚙️ Allow user to customize the sender name for mails (#1023)
Co-authored-by: Tom De Puysseleyr <tom.depuysseleyr@belorta.Be>
This commit is contained in:
parent
a554bed5df
commit
a675897e2c
3 changed files with 9 additions and 1 deletions
|
@ -41,6 +41,11 @@ These variables need to be configured to let Rallly send out transactional email
|
||||||
`SUPPORT_EMAIL` will be used instead.
|
`SUPPORT_EMAIL` will be used instead.
|
||||||
</ParamField>
|
</ParamField>
|
||||||
|
|
||||||
|
<ParamField path="NOREPLY_EMAIL_NAME">
|
||||||
|
This name is used as the sender name for all transactional emails. If not set,
|
||||||
|
`Rallly` will be used instead.
|
||||||
|
</ParamField>
|
||||||
|
|
||||||
<ParamField path="SUPPORT_EMAIL" required>
|
<ParamField path="SUPPORT_EMAIL" required>
|
||||||
This email will be shown as the contact email for support queries.
|
This email will be shown as the contact email for support queries.
|
||||||
</ParamField>
|
</ParamField>
|
||||||
|
|
|
@ -12,7 +12,9 @@ export const emailClient = new EmailClient({
|
||||||
},
|
},
|
||||||
mail: {
|
mail: {
|
||||||
from: {
|
from: {
|
||||||
name: "Rallly",
|
name:
|
||||||
|
(process.env.NOREPLY_EMAIL_NAME as string) ||
|
||||||
|
"Rallly",
|
||||||
address:
|
address:
|
||||||
(process.env.NOREPLY_EMAIL as string) ||
|
(process.env.NOREPLY_EMAIL as string) ||
|
||||||
(process.env.SUPPORT_EMAIL as string),
|
(process.env.SUPPORT_EMAIL as string),
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
"NEXT_PUBLIC_VERCEL_URL",
|
"NEXT_PUBLIC_VERCEL_URL",
|
||||||
"NODE_ENV",
|
"NODE_ENV",
|
||||||
"NOREPLY_EMAIL",
|
"NOREPLY_EMAIL",
|
||||||
|
"NOREPLY_EMAIL_NAME",
|
||||||
"OIDC_NAME",
|
"OIDC_NAME",
|
||||||
"OIDC_DISCOVERY_URL",
|
"OIDC_DISCOVERY_URL",
|
||||||
"OIDC_CLIENT_ID",
|
"OIDC_CLIENT_ID",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue