Email Templates
Customize the system emails your league sends with the built-in template editor.
The Template Editor
Every organization gets a set of system email templates. You can customize each one from the Email Templates page in your org dashboard. The editor lets you change the subject line and body while preserving the dynamic variables that personalize each email.
Navigate to your org dashboard and find "Email Templates" in the sidebar. Each template is listed with its current subject line and a preview of the body.
System Templates
tplgolf includes 10 system templates that cover the full league lifecycle:
Match & Season
Broadcasts
Substitutes
Invites
Admin
Using Variables
Templates use double-curly-brace placeholders that get replaced with real data when the email is sent. For example:
- {{playerName}} — the recipient's display name
- {{leagueName}} — the league's name
- {{matchDate}} — the formatted match date
- {{courseName}} — the course being played
- {{opponentTeam}} — the opposing team's name
- {{acceptUrl}} — the invite acceptance link
Each template shows its available variables in the editor sidebar. Only use variables that are listed for that specific template — other placeholders will render as empty text.
The Rich-Text Editor
The template body uses a Tiptap-powered rich-text editor. You can:
- Format text with bold, italic, and underline
- Add headings, lists, and links
- Insert variable placeholders from the toolbar
- Rearrange content by dragging blocks
The editor preserves your formatting when the email is sent. What you see in the editor is close to what the recipient gets in their inbox.
Previewing Templates
Before saving changes, use the preview pane to see how the email will look with sample data filled in. The preview replaces all variables with realistic placeholder values so you can check formatting and readability.
Reverting to Defaults
Every template has a "Revert to Default" option that restores the original system template. This is useful if your customizations get messy or you want to start fresh. Reverting replaces the subject and body entirely — your customizations are not recoverable after reverting.