+9








eae60043bb
Co-authored-by: gitstart <[email protected]> Co-authored-by: gitstart <[email protected]> Co-authored-by: Nitesh Singh <[email protected]> Co-authored-by: Rafael Toledo <[email protected]> Co-authored-by: Matheus Benini Ferreira <[email protected]> Co-authored-by: MuriloAmarals <[email protected]> Co-authored-by: Murilo Amaral <[email protected]> Co-authored-by: Rubens Rafael <[email protected]> Co-authored-by: Thiago Nascimbeni <[email protected]> Co-authored-by: Rafael <[email protected]> Co-authored-by: Grace Nshokano <[email protected]> Co-authored-by: Matheus Muniz <[email protected]> Co-authored-by: Júlio Piubello da Silva Cabral <[email protected]> Co-authored-by: Matheus Muniz <[email protected]> Co-authored-by: C000Ldude <[email protected]> Co-authored-by: Klinger Matheus <[email protected]> Co-authored-by: Eman <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
JSX email templates
componentsHolds reusable patternstemplatesA template equals a type of email sent
Usage
import { renderEmail } from "@calcom/emails";
renderEmail("TeamInviteEmail", */{
language: t,
from: "[email protected]",
to: "[email protected]",
teamName: "Team Pro",
joinLink: "https://cal.com",
});
The first argument is the template name as defined inside templates/index.ts. The second argument are the template props.
Development
You can use an API endpoint to preview the email HTML, there's already one on /apps/web/pages/api/email.ts feel free to change the template to the one you're currently working on.