Skip to content

Commit

Permalink
feat: Implement Zoom reminder email component and integrate into emai…
Browse files Browse the repository at this point in the history
…l sending functionality
  • Loading branch information
AlanKha committed Jan 16, 2025
1 parent f6c7f09 commit c9b8c28
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
File renamed without changes.
17 changes: 17 additions & 0 deletions src/server/api/emails/private-mutations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import PasswordChangedEmail from "@/components/emails/PasswordChangedEmail";
import RejectionEmail from "@/components/emails/RejectionEmail";
import ResetPasswordEmail from "@/components/emails/ResetPasswordEmail";
import WelcomeEmail from "@/components/emails/WelcomeEmail";
import ZoomReminderEmail from "@/components/emails/ZoomReminderEmail";

import sendEmail from "./helpers";

Expand Down Expand Up @@ -62,3 +63,19 @@ export async function sendEmailVerificationEmail(

await sendEmail(recipientEmail, "Verify your SCF email address", html);
}

export async function sendZoomReminderEmail(
recipientEmail: string,
meetingName: string,
meetingLink: string,
) {
const html = await render(
<ZoomReminderEmail meetingName={meetingName} meetingLink={meetingLink} />,
);

await sendEmail(
recipientEmail,
`Reminder: You have an upcoming meeting for ${meetingName}.`,
html,
);
}

0 comments on commit c9b8c28

Please sign in to comment.