@flinkk/email
v1.0.2
Published
React Email templates and environment-variable validation shared across Flinkk apps that send transactional email (invites, password resets, notifications).
Readme
@flinkk/email
React Email templates and environment-variable validation shared across Flinkk apps that send transactional email (invites, password resets, notifications).
Exports
| Subpath | What it is |
| --- | --- |
| @flinkk/email/keys | keys() — a @t3-oss/env-nextjs schema validating RESEND_FROM and RESEND_TOKEN at startup, so a missing/malformed Resend config fails fast instead of at send time. |
| @flinkk/email/templates/welcomeEmail | Welcome email sent on signup. |
| @flinkk/email/templates/welcome-email | Alternate welcome email variant. |
| @flinkk/email/templates/memberInvitationEmail | Org member invitation email (used by @flinkk/mail-api's sendInviteMail). |
| @flinkk/email/templates/resetPasswordEmail | Password reset email. |
| @flinkk/email/templates/setPasswordEmail | Initial password-set email (new member onboarding). |
| @flinkk/email/templates/little-guest-hotel-partner | Notification email sent to a hotel partner when a Little Guest lead comes in. |
All templates are React Email components — render them to HTML with @react-email/render before handing the string to a mail sender.
Usage
import { render } from "@react-email/render";
import MemberInvitationEmail from "@flinkk/email/templates/memberInvitationEmail";
const html = await render(
MemberInvitationEmail({
url: inviteUrl,
organizationName: "Acme Corp",
inviterName: "Jane Doe",
platform: "Flinkk One",
}),
);
// hand `html` to @flinkk/mail-api's sendEmail/sendInviteMail, or any other transportimport { keys } from "@flinkk/email/keys";
// Throws with a clear message if RESEND_FROM/RESEND_TOKEN are missing or malformed
const env = keys();License
ISC License - Internal Flinkk library
