Skip to content

Commit

Permalink
Fix docs -- correct filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
scosman committed Nov 3, 2024
1 parent 2ec70e0 commit b86f4be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions email_docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ SaaS Starter includes a welcome email template that you can customize to fit you
To customize the email:

- edit the properties like company name, from email, and subject in the call to sendTemplatedEmail in src/routes/(admin)/account/api/+page.server.ts
- edit the plaintext email content in src/lib/emails/welcome_email_text.svelte
- edit the html email content in src/lib/emails/welcome_email_html.svelte - don't forget address and preheader text which won't render in a preview, but will in the client's email client.
- edit the plaintext email content in src/lib/emails/welcome_email_text.hbs
- edit the html email content in src/lib/emails/welcome_email_html.hbs - don't forget address and preheader text which won't render in a preview, but will in the client's email client.

**Note**: use triple braces for properties in plaintext emails, and double braces for html emails. See the [handlebars documentation](https://handlebarsjs.com/guide/expressions.html#html-escaping) for more information.

Expand All @@ -40,7 +40,7 @@ Simply add a call to sendAdminEmail() in the appropriate place, passing a subjec

## Adding Additional User Emails

You can add more user emails. Create a template in src/lib/emails, using the welcome email as a guide. You should have both a plaintext and html version of the email (see welcome_email_text.svelte and welcome_email_html.svelte for examples), although it will work with just one.
You can add more user emails. Create a template in src/lib/emails, using the welcome email as a guide. You should have both a plaintext and html version of the email (see welcome_email_text.hbs and welcome_email_html.hbs for examples), although it will work with just one.

When you want to send the email, call sendUserEmail() with the appropriate parameters, including the name of the email template.

Expand Down

0 comments on commit b86f4be

Please sign in to comment.