Skip to content

Commit

Permalink
💌 email (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultleouay authored Feb 28, 2025
1 parent bd14d53 commit 8402e22
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 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
6 changes: 1 addition & 5 deletions packages/emails/emails/welcome.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 WelcomeEmail = () => {
return (
Expand Down Expand Up @@ -43,10 +43,6 @@ const WelcomeEmail = () => {
<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 8402e22

Please sign in to comment.