You can replace the layout of your emails with your own HTML. This is done in Settings › Emails and brand (owner only). Your HTML is used for campaigns and automatic messages by email, which are part of the Pro plan. You do not need HTML to send good-looking emails: logo, colour, font and layout can be set without code on the same screen.
Where to paste your HTML
Two places on the Emails and brand screen:
- Advanced HTML: a single HTML, for campaigns and automatic messages.
- HTML templates: several templates (30 at most). Click New template, fill in Template name and Template HTML, then Save template. Under Usage, choose the template for each type of email: Campaigns, Reminders, birthday and other automatic messages, Google review request, Card code. Only tested templates are offered.
In Advanced HTML, there are three steps:
- Save the draft: the HTML is cleaned and nothing is sent to your customers. The screen lists what was Removed for security.
- Send a test: the draft is sent to your account's address. For a template, the button is Send me a test.
- Put live: only possible when the test matches the draft. Changing the draft cancels the test.
Remove my HTML brings back the kit layout (your draft is kept). The Preview tab shows the email exactly as your customers will see it.
Safety net: your HTML is checked again at every send. If it is refused, the email still goes out, with your kit's standard layout. No email is ever sent with doubtful HTML.
What is kept, what is removed
Anything not in the list below is removed.
- Tags kept:
table,thead,tbody,tr,td,th,p,div,span,a,img,h1toh6,ul,ol,li,strong,em,b,i,u,br,hr,center,blockquote. - Removed along with their content:
script,style,iframe,svg,video,audio,object,canvas,title,noscript, drop-down lists… Other tags (form,button,font,small…) disappear, but their text stays. - Attributes kept:
style,alt,title,width,height,align,valign,bgcolor,border,cellpadding,cellspacing,colspan,rowspan,role, plushrefandtargeton links andsrcon images.class,id,srcsetand allon…attributes are removed. - Links: only
https://,mailto:andtel:. A link starting withhttp://is removed. - Images:
https://addresses only (no embeddeddata:images, no SVG). An image smaller than 3 px is removed (tracking pixel). Sizes in px, or a width of 100%. - Styles: only in the
styleattribute. Allowed properties: colour and background colour,font-family,font-size,font-weight,font-style,line-height,letter-spacing,text-align,text-decoration,text-transform,vertical-align,padding,margin,border,width,max-width,height(on images and tables only),display(block,inline-blockortable). - Refused everywhere:
url((so no background image),border-radius,position,display:none, negative values, styles in a<style>tag and therefore@media. - Comments: all removed, including Outlook conditional comments.
- Limits: margins and padding 64 px, width 600 px (or 100%), height 800 px, font size 10 to 72 px (in px), borders 20 px. Beyond that, the value is removed.
- Size: 60 KB at most after cleaning (the counter under the field shows it). Beyond that, the whole HTML is refused, never cut.
The variables
Write them between curly brackets, in lower case. Click a variable under the field to insert it.
{contenu}: the email content (title, message, offer and button). Required, except in the card code email (see below).{titre},{message},{offre},{bouton}: each piece on its own (title, message, offer, button). Careful: they are already inside{contenu}.{prenom}(first name),{commerce}(business name),{solde}(balance),{unite}(stamps or points),{recompense}(reward).{logo},{signature},{reseaux}(social media),{adresse}(if the address is filled in and shown).{code}and{validite}: only for the Card code email, where{code}is required. Empty in all other emails.
A variable is only replaced in the text. In a link or image address, or in an alt, {prenom} stays as it is. An unknown variable gets the HTML refused. A missing value is replaced by nothing: without a first name, "Hello {prenom}," becomes "Hello ,". Prefer wording that still works without a first name.
The rules big brands follow
- Width: 600 px. An outer table at 100%, then a 600 px table with
width:100%;max-width:600px, so it shrinks on phones. - Tables: build the whole layout with tables, with
role="presentation",cellpadding="0",cellspacing="0"andborder="0". - Inline styles: each cell carries its own font, size and colour. Nothing is reliably inherited.
- One column: it reads best on a phone. Without
@media, two columns will not stack. - "Bulletproof" button: a coloured cell (
bgcolor) containing a link indisplay:inline-block, withpadding. At least 44 px tall, for example 14 px + 18 px line height + 14 px.{bouton}is built this way (48 px), in your colour. - One main action per email: one button, one destination.
- Text: 16 px for body text, at least 14 px for everything else, line height 1.5.
- Contrast: at least 4.5:1 between text and background (AA level).
- Images:
https://, light (under 200 KB), always withalt. Usealt=""for a decorative image. For a full-width image:width="600"andstyle="width:100%;height:auto;display:block". - Text first: never everything as an image. The message must make sense with images off (many email apps block them at first).
- Dark mode: give every table a background (
bgcolor). Avoid black text on a transparent background. Plan a logo that stays readable on a dark background (light outline, or logo placed on a light area). - Accessibility: an
h1orh2for the main title (never a heading inside a heading). The order of the code is the reading order. - Deliverability: few links, a clear subject, a real reply-to address (Sender › Reply-to address).
- Preheader: you cannot hide text yourself (
display:noneis removed). Make your first visible sentence a good summary.
Fonts and social media icons
Under Branding › Font, the kit offers system fonts: Modern, Elegant, Soft, Classic (Palatino), Readable (Verdana) and Typewriter (Courier). And web fonts hosted by Fidélitas: Geometric (Montserrat), Rounded (Poppins), Editorial (Playfair Display) and Literary (Lora). They display on iPhone, Apple Mail and Outlook mobile; Gmail shows a similar font.
In your own HTML, you cannot load a font (<style> and url( are removed). Write a list with fallbacks: the first font installed on the reader's device is used. Examples: font-family:Helvetica,Arial,sans-serif, font-family:Georgia,'Times New Roman',serif, font-family:Montserrat,Helvetica,Arial,sans-serif. Always end with sans-serif or serif.
{reseaux} shows a row of 24 px icons, light or dark depending on the background, linking to the pages entered under Social media.
A starter template
From top to bottom:
- Background: a
width="100%"table with abgcolor(very light grey), one cell withalign="center". - Container: a
width="600"table,style="width:100%;max-width:600px", white background. - Header: a cell with
{logo},padding:24px. - Hero: a full-width image, https, with its
alt. - Text: a cell with
padding:24px, a font,font-size:16px,line-height:1.5, dark colour. Inside: a greeting, then{contenu}(which brings the button). - Signature and social media:
{signature}then{reseaux}, centred. - Footer:
{adresse}in 14 px dark grey.
Do not add {bouton} as well: it is already inside {contenu}.
The card code email
When customers find their card again with their email address, they receive a one-time code. This email can also use your own HTML.
- Under HTML templates, click New template.
- Paste your HTML. It must contain
{code}: otherwise it is not offered for this email. - Click Save template, then Send me a test. A template that has not been tested is not offered.
- Under Usage, on the Card code line, choose your template.
Safety net: if the template causes the slightest problem when sending, the usual email is sent instead. The customer always receives their code.
The variables for this email:
{code}: required. The code block: the label, the code in large type and the expiry time.{validite}: "It expires in 15 minutes." This is already inside{code}: only use it to repeat it elsewhere.{titre}: the email title.{message}: the opening sentence.{commerce}: your business name.{logo}: your logo.{contenu}: optional here. It brings the sentence, the code and the warning, already put together.
Two rules:
{code}or{contenu}, not both:{contenu}already contains the code, which would show twice.- These variables stay empty:
{prenom},{solde},{unite},{recompense},{bouton},{offre},{reseaux},{adresse},{signature}. The code is sent before we know who the customer really is: no personal data inside. Do not add a button or an offer.
A starter template, to copy as it is. Replace #1F3A5F with your colour (keep the text on it readable):
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#f4f4f5">
<tr>
<td align="center" style="padding:32px 16px;">
<table role="presentation" width="600" cellpadding="0" cellspacing="0" border="0" bgcolor="#ffffff" style="width:100%;max-width:600px;">
<tr>
<td align="center" bgcolor="#1F3A5F" style="padding:24px;">
{logo}
</td>
</tr>
<tr>
<td style="padding:32px 32px 8px 32px;font-family:Arial,Helvetica,sans-serif;color:#18181b;">
<h1 style="margin:0 0 12px 0;font-size:22px;line-height:1.3;">{titre}</h1>
<p style="margin:0 0 20px 0;font-size:16px;line-height:1.5;">{message}</p>
</td>
</tr>
<tr>
<td style="padding:0 32px;">
{code}
</td>
</tr>
<tr>
<td style="padding:24px 32px 32px 32px;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5;color:#52525b;">
Didn't ask for this? Simply ignore this email.<br>
{commerce}
</td>
</tr>
</table>
</td>
</tr>
</table>What is added automatically and cannot be removed
After your HTML, on a white background, the system always adds: "You are receiving this email because you have a … loyalty card.", the Stop receiving emails link (marketing emails) and "Sent with Fidélitas". Your HTML is closed before it: it can neither hide nor cover this part. The business address is not included there: add {adresse} to your footer.
Checklist before putting live
{contenu}is present; for the card code email,{code}instead.- Nothing important under Removed for security.
- 600 px wide, one column, tables with
role="presentation". - Every image: https,
alt, under 200 KB. - One button only, at least 44 px tall.
- Text at 16 px, enough contrast, readable with images off and in dark mode.
- Test received and opened on a computer and on a phone, ideally in Gmail, Outlook and Apple Mail. A forwarded email often loses its layout: do not rely on it.
Common problems
- The preview shows the kit layout: your HTML is refused. The red message under the field gives the reason.
- My button lost its rounded corners:
border-radiusis not allowed. Use{contenu}: its button follows the kit's Button shape. - The first name shows as "{prenom}" in a link: this is expected, variables are only replaced in the text.
See also Sending an email campaign.
Updated on 11 November 2026