Skip to content

Commit 242928f

Browse files
committed
updated the docs to reflect the changes made
1 parent ea9b678 commit 242928f

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.env.example

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ NODE_ENV=development
1414
# AUTH_GITHUB_CLIENT_ID=
1515
# AUTH_GITHUB_CLIENT_SECRET=
1616

17-
# Resend is an email service used for signing in to Trigger.dev via a Magic Link.
17+
# EMAIL VARIABLES.
1818
# Emails will print to the console if you leave these commented out
19-
### Visit https://resend.com, create an account and get your API key. Then insert it below along with your From and Reply To email addresses. Visit https://resend.com/docs for more information.
20-
# RESEND_API_KEY=<api_key>
2119
# FROM_EMAIL=
2220
# REPLY_TO_EMAIL=
21+
# SMTP_HOST=
22+
# SMTP_PORT=
23+
# SMTP_USER=
24+
# SMTP_PASSWORD=
2325

2426
# CLOUD VARIABLES
2527
POSTHOG_PROJECT_KEY=

apps/webapp/app/env.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const EnvironmentSchema = z.object({
2727
AUTH_GITHUB_CLIENT_SECRET: z.string().optional(),
2828
FROM_EMAIL: z.string().optional(),
2929
REPLY_TO_EMAIL: z.string().optional(),
30-
RESEND_API_KEY: z.string().optional(),
3130
SMTP_HOST: z.string().optional(),
3231
SMTP_PORT: z.number().optional(),
3332
SMTP_USER: z.string().optional(),

docs/documentation/guides/self-hosting/flyio.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ Both of these secrets should be set to the base URL of your fly application. For
8282

8383
![github copy secrets](/images/github-secrets.png)
8484

85-
`RESEND_API_KEY`, `FROM_EMAIL` and `REPLY_TO_EMAIL`
85+
`FROM_EMAIL`,`REPLY_TO_EMAIL`, `SMTP_HOST`, `SMTP_PORT`, `SMTP_USER` and `SMTP_PASSWORD`
8686

87-
We use [Resend.com](https://resend.com) for email sending (including the magic-link signup/login system). They have a generous free tier of 100 emails a day that should be sufficient. Signup for Resend.com and enter the environment vars below
87+
We use SMTP for email sending (including the magic-link signup/login system).
8888

8989
## Set the secrets
9090

@@ -99,7 +99,10 @@ fly secrets set \
9999
APP_ORIGIN="https://<fly app name>.fly.dev" \
100100
FROM_EMAIL="Acme Inc. <[email protected]>" \
101101
REPLY_TO_EMAIL="Acme Inc. <[email protected]>" \
102-
RESEND_API_KEY=<your API Key> \
102+
SMTP_HOST= < your SMTP host > \
103+
SMTP_PORT= < your SMTP port > \
104+
SMTP_USER= < your SMTP user > \
105+
SMTP_PASSWORD= < your SMTP password > \
103106
AUTH_GITHUB_CLIENT_ID=<your GitHub OAuth Client ID> \
104107
AUTH_GITHUB_CLIENT_SECRET=<your GitHUb OAuth Client Secret>
105108

0 commit comments

Comments
 (0)