Templates
Posted on Sep 25, 2024Templates help you reuse content and designs across your email campaigns. For instance, you might create a template for your monthly newsletter to maintain a consistent look and reduce the effort of creating emails each time. ShopJets Email Marketing App also allows you to insert dynamic subscriber details, such as their name, into your templates.
Viewing Templates
To view your existing templates, click the Templates link in the sidebar. This will take you to the templates index page.
Creating and Updating Templates
To create a new template:
- Go to the Templates index page.
- Click New Template
Each template requires a name and a content, which can be a valid HTML or simple text.
Placeholders
You can use the following placeholders in your templates:
- {{email}} – Inserts the subscriber's email address..
- {{first_name}} – Inserts the subscriber's first name (if provided).
- {{last_name}} – Inserts the subscriber's last name (if provided).
- {{unsubscribe_url}} – Generates a URL for subscribers to unsubscribe.
- {{webview_url}} – Generates a URL for subscribers to view the message in a web browser.
URL Placeholders
The {{unsubscribe_url}} and {{webview_url}} placeholders generate plain text URLs. To create clickable links, you need to wrap the URL in an anchor tag. For example:
<a href="{{unsubscribe_url}}">Click here to unsubscribe</a>
Inline CSS Styles
Many email clients ignore or remove external stylesheets or styles placed in the head section of an HTML document. ShopJets Email Marketing App automatically inlines all your CSS styles when the emails are sent. This means you can continue to use CSS in your templates, and the app will ensure that the styles are applied correctly in your emails.
If your template includes both CSS and inline styles, the inline styles will be preserved, and the CSS will be added to them.