Skip to content

Commit

Permalink
Merge branch 'main' into chore/link-email-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske committed Mar 4, 2025
2 parents f4b6fbd + 8412ca5 commit addc051
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 31 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/api/internal/email/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function GET(request: NextRequest) {
for (const user of users) {
if (user.email) {
await sendEmail({
from: "Thibault Le Ouay Ducasse <[email protected]>",
from: "Thibault from OpenStatus <[email protected]>",
subject: "How's it going with OpenStatus?",
to: [user.email],
react: FollowUpEmail(),
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/lib/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
if (params.user.tenantId) return;

await sendEmail({
from: "Thibault Le Ouay Ducasse <[email protected]>",
from: "Thibault from OpenStatus <[email protected]>",
subject: "Welcome to OpenStatus.",
to: [params.user.email],
react: WelcomeEmail(),
Expand Down
11 changes: 1 addition & 10 deletions packages/emails/emails/followup.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsxImportSource react */

import { Body, Head, Html, Link, Preview } from "@react-email/components";
import { Body, Head, Html, Preview } from "@react-email/components";

const FollowUpEmail = () => {
return (
Expand All @@ -16,20 +16,11 @@ const FollowUpEmail = () => {
into any issues, or have any feedback, good or bad!
<br />
<br />
Feel free to shoot me an email or schedule a call with me{" "}
<a href="https://cal.com/team/openstatus/30min">here</a>
.
<br />
<br />
Thank you,
<br />
<br />
Thibault Le Ouay Ducasse
<br />
<br />⭐ Star us on{" "}
<Link href="https://github.com/openstatushq/openstatus">GitHub</Link>
<br />🚀 Visit our website{" "}
<Link href="https://www.openstatus.dev">OpenStatus.dev</Link>
</Body>
</Head>
</Html>
Expand Down
30 changes: 11 additions & 19 deletions packages/emails/emails/welcome.tsx
Original file line number Diff line number Diff line change
@@ -1,56 +1,48 @@
/** @jsxImportSource react */

import { Body, Head, Html, Link, Preview } from "@react-email/components";
import { Body, Head, Html, Preview } from "@react-email/components";

const WelcomeEmail = () => {
return (
<Html>
<Head>
<title>Welcome to OpenStatus</title>
<Preview>Take the most of your OpenStatus monitoring</Preview>
<Preview>Few tips to get started</Preview>
<Body>
Hey 👋
<br />
<br />
I'm Thibault <a href="https://www.openstatus.dev">OpenStatus</a>{" "}
co-founder.
I'm Thibault, the co-founder of OpenStatus, the open-source synthetic
monitoring platform. <br />
<br />
<br /> I'm thrilled to see you joining us. We are building an
open-source status page and monitoring tool. We are here to help you
monitor your websites and API to get notified before your users alert
you.
<br />
<br />
Here are a few things you can do with OpenStatus:
<br />- Run your synthetics checks in your{" "}
<a href="https://docs.openstatus.dev/guides/how-to-run-synthetic-test-github-action?ref=email-onboarding">
GitHub Actions
</a>
<br />- Use our{" "}
<a href="https://docs.openstatus.dev/tools/terraform">
<a href="https://docs.openstatus.dev/tools/terraform?ref=email-onboarding">
Terraform provider
</a>{" "}
to manage your monitors
<br />- Integrate your status within your application with our{" "}
<a href="https://docs.openstatus.dev/tools/status-widget">API</a> and{" "}
<a href="https://docs.openstatus.dev/tools/react/">React Widget</a>
<br />- Build your own status page with our{" "}
<a href="https://api.openstatus.dev/v1">API</a> and host it where you
want. Here's our{" "}
<a href="https://github.com/openstatusHQ/astro-status-page">
<a href="https://github.com/openstatusHQ/astro-status-page?ref=email-onboarding">
Astro template
</a>{" "}
that you can easily host on CloudFlare
<br />
<br />
If you have any questions, just let me know, or book a call with me{" "}
<a href="https://cal.com/team/openstatus/30min">here</a>.
Quick question: How did you learn about us? and why did you sign up?
<br />
Thank you,
<br />
<br />
Thibault Le Ouay Ducasse
<br />
<br />⭐ Star us on{" "}
<Link href="https://github.com/openstatushq/openstatus">GitHub</Link>
<br />🚀 Visit our website{" "}
<Link href="https://www.openstatus.dev">OpenStatus.dev</Link>
</Body>
</Head>
</Html>
Expand Down

0 comments on commit addc051

Please sign in to comment.