cal.pub0.org/packages/emails
sean-brydon ad4bcfafce
Manage Link showing for organisers (#3037)
2022-06-12 15:33:14 +00:00
..
src Manage Link showing for organisers (#3037) 2022-06-12 15:33:14 +00:00
templates Recurring event improvements (#2750) 2022-06-10 17:38:06 -03:00
README.md
email-manager.ts Recurring event fixes (#3030) 2022-06-09 18:32:34 -06:00
index.ts
package.json
tailwind.config.js

README.md

JSX email templates

  • components Holds reusable patterns
  • templates A template equals a type of email sent

Usage

import { renderEmail } from "@calcom/emails";

renderEmail("TeamInviteEmail", */{
  language: t,
  from: "teampro@example.com",
  to: "pro@example.com",
  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.