{data.meta.label} | Emails | CMS
{ saving = true; const snapshot = serialize(); return async ({ result, update }) => { saving = false; if (result.type === 'success') savedSnapshot = snapshot; await update({ reset: false }); }; }} >
← Emails

{data.meta.label}

{data.meta.description}

{#if dirty}Unsaved changes{/if}
{#if isAlert} {:else}

Sent to the email address the customer entered at checkout. Replies go to {data.settings.business.email || 'the footer email (not set yet)'}.

{/if}
Placeholders

Type these into the subject or any text block; they're replaced with the booking's details. Click one to copy it.

{#each emailPlaceholders as placeholder} {/each}

Preview

With a sample booking. Subject: {rendered.subject}

{#if previewFormat === 'html'} {:else}
{rendered.text}
{/if}
{ testing = true; return async ({ update }) => { testing = false; await update({ reset: false, invalidateAll: false }); }; }} >

Send a test email

Sends the current (unsaved) version with the sample booking{data.key === 'customer_confirmation' ? ', including the calendar attachment' : ''}.

{#if !data.smtpConfigured}
SMTP is not configured, so the test email will only be written to the server log.
{/if}
{#if form?.action === 'test' && form.message}
{form.message}
{/if}
{#if data.customised}
{ if (!confirm('Replace this email with the built-in default? Your changes will be lost.')) e.preventDefault(); }} >
{/if}