Utilities
Render
Transform Svelte components into HTML email templates.
1. Create an email using Svelte
2. Convert to HTML
This will return the following HTML:
3. Convert to plain text
Plain text versions of emails are important because they ensure that the message can be read by the recipient even if they are unable to view the HTML version of the email.
This is important because not all email clients and devices can display HTML email, and some recipients may have chosen to disable HTML email for security or accessibility reasons.
Here’s how to convert a Svelte component into plain text.
This will return the following plain text: