Email Configuration
How to set up email senders and layouts.
To start sending email in Daisychain, you'll need to have do a bit of setup.
Senders
Navigate to Settings > Channels > Email > Senders > Add to begin the three step configuration wizard which will walk you through the following three steps:
Setup your identity by entering your display name and email address
Verify your domain by adding three CNAME records to your DNS provider. If you're not sure what that means, ask your website administrator or IT department.
Confirmation and completion!
If you've already configured your domain in Daisychain and are just adding a new sender/name, you'll be able to automatically skip Step 2.
Layouts
A layout is the reusable "frame" that wraps the content of every email you send — the header, footer, fonts, colors, and spacing. The content you write for each individual email is dropped into the layout when the email is sent.
Your Daisychain account comes with a default Basic layout. It's simple and readable for recipients on a wide variety of email clients and devices, and it includes the things that are legally required for automated email:
Account Name
Mailing Address
Unsubscribe Link
You can find your layouts under Settings > Channels > Email > Layouts.
Editing a layout
Open a layout to edit it. You'll see two tabs:
Templates — where you edit the layout itself. There are two editors:
MJML Markup — the structure and content of the layout.
CSS — styling that applies across the layout.
Preview — a live rendering of the email so you can check your changes before saving.
Layouts are written in MJML, a markup language designed specifically for email. MJML uses its own tags — like <mj-section>, <mj-column>, and <mj-text> — which are automatically converted into the kind of HTML that displays reliably across email clients. When you're done, switch to the Preview tab to confirm it looks right, then hit Save.
Because layouts are MJML, you can't simply paste raw HTML anywhere in the editor — HTML placed on its own will be dropped when the email is built. To include HTML, put it inside an MJML tag:
Use
<mj-text>for text and inline formatting (links, line breaks, bold, colored spans). This is the right choice for most content, including disclaimers.Use
<mj-raw>when you need to pass a block of custom HTML through untouched.
Anatomy of a layout
A Daisychain layout isn't a complete email on its own — it's the frame, and Daisychain drops two things into it when the email is built:
The content of the individual email (what's written in the message editor).
The CSS from the layout's CSS tab.
These are inserted at two special tags — <mj-partial name="content" /> and <mj-partial name="css" />. mj-partial is a Daisychain-specific tag (not part of standard MJML), so every layout must include both, or it won't work: omit the content partial and the email body will be blank; omit the CSS partial and nothing from your CSS tab will apply.
Here's the minimal skeleton every layout needs:
You can add as much as you like around the content partial (a header above it, a footer below it), style the whole thing with the CSS tab or MJML's own <mj-attributes>, and use the MJML reference for the available tags. Just keep both partials in place.
Editing the footer or disclaimer
The footer lives near the bottom of the layout's MJML, in the <mj-text> block that contains the unsubscribe link and your mailing address. To add a compliance line such as a "Paid for by" disclaimer, add a text block in that area, for example:
To set the disclaimer off in a bordered box, put it in its own column with a border. The border goes on the <mj-column> (the box) and the text stays inside <mj-text>:
The padding on the column controls the space between the border and the text, and the padding on the section controls the space around the box.
Dynamic content with Liquid
Layouts can include Liquid tags that are filled in for each recipient when the email is sent. The default layout uses a few of these:
{{ account.name }}— your account/organization name{{ account.customer_address }}— your mailing address{% unsubscribe_url %}— the recipient's one-click unsubscribe link
Last updated