From b86f4be73516f4b407022a97ac3125ce8565a510 Mon Sep 17 00:00:00 2001 From: scosman Date: Sun, 3 Nov 2024 03:20:16 -0500 Subject: [PATCH] Fix docs -- correct filenames --- email_docs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/email_docs.md b/email_docs.md index 28f66fd8..53e35876 100644 --- a/email_docs.md +++ b/email_docs.md @@ -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. @@ -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.