Formatting text
Once you have written content in your email, you can apply styles by highlighting the text. This will bring up a formatting toolbar with options that give you a lot of control over your written content.



Adding elements
Emails can be more than just text. You can add the following elements to your emails:- images
- buttons
- dividers
- social icons


+
plus icon on the left.


Images
As well as adding from the toolbar or the+
icon, you can drag or paste images into the editor.
Add a link to an image by selecting the element and then clicking the link icon in the toolbar.
Dynamic images
Images can become dynamic by clicking the⚡️
icon in the toolbar. Paste in an image URL and add dynamic parts of the URL.
Keep in mind that the image must be publicly accessible for this to work and the URL must end with a supported image file extension for email (like .jpg
or .png
). Additionally, these images should be hosted for a period of time that is relevant to the email’s lifecycle as they will not be stored in Cocoonmail.
Note that, just as with other dynamic content, if the contact or event property used for your dynamic image is missing, the email will not be sent.
Buttons
Buttons let you add call-to-action elements inside your emails. Add links to buttons by selecting the element and then clicking the link icon in the toolbar.Dividers
Dividers help separate or group content in your emails. Change spacing around dividers by clicking the drag-and-drop icon on the left and changing the padding values ([more about block settings below](/creating-emails/editing-emails/Block setting)).Social icons
You can add a row of social icons by clicking the star icon in the editor toolbar.

Block settings
Block settings let you edit properties of different element “blocks” in your email. If you hover over a block in your email, you’ll see a drag-and-drop icon appear on the left.





Dynamic content
Marketing emails
Adding contact data into your campaigns and Cocoonmail is easy with dynamic content. Simply click on the Insert contact property or Insert event property icons in the editor toolbar and select the dynamic content item you want to add.



{firstName}
, {email}
, etc.
For event properties you need to add an EVENT_PROPERTY:
prefix, like {EVENT_PROPERTY:productName}
.
Transactional emails
Transactional emails can also contain dynamic variables. Add “data variables” to your email in the editor, then include values for these variables when you send the transactional email. You can create data variables in transactional emails from the editor toolbar.

DATA_VARIABLE:
prefix, like {DATA_VARIABLE:resetUrl}
.
Read about sending transactional emails with data variables
Styled vs Plain emails
Cocoonmail offers two different email styling options, Styled and Plain.

Style panel
If the Styled option is enabled (see above), you will see a Style panel when clicking the pencil icon. This panel shows options for changing base styles for your email. This includes all text, headings, links, buttons and dividers in your email, as well as design options for the main email body (padding, background and border).





Language selector
We’ve included a helpful language selector in the style panel. Using this will tell email clients which language your emails are written in. This increases the accessibility of your emails, plus some email clients may use this language information to auto-translate email content or offer translation options. The language selector does not have a default value. We recommend selecting the correct language for each of your emails.
Saved styles
Saved styles let you create repeatable styles that can be easily applied to new emails. Once applied, Saved styles can be tweaked on each email and changes will also be synced back to the main style set. This makes the same change on any other email that the styles are applied to. If your email is in Plain mode (see above), styles cannot be applied.Create a Saved style
To create a Saved style, click the+
plus icon in the style panel.

✓
check icon or press Enter. This will create a Saved style based on the current styling options selected in the style panel and apply it to the current email.

Apply a Saved style to an email
To add an existing style to an email, open the style panel and select a Saved style from the dropdown.
Edit a Saved style
To edit a Saved style, first open an email with it applied, or apply it to an email. Then change individual style options to your liking. When individual styles are changed, you’ll notice they are highlighted in purple, which denotes styles that have deviated from the main Saved style.
+
plus icon.
This new Saved style will be applied to the current email. (Emails using the previous Saved style will retain that Saved style’s settings.)
Make one-off changes to a Saved style
You are free to make one-off custom design changes on an individual email. Just avoid clicking the “Update” button shown above as this will sync the changes to all other emails using the Saved style. Any subsequent updates made to the underlying Saved style will be synced to your email but your individual style changes made directly on the email will override any synced changes.Reset to a Saved style’s defaults
After making design changes to an email with a Saved style applied, you can get back to the Saved style’s defaults by clicking the reset button next to the “Saved” title. This will re-apply the Saved style’s design to your email and remove all custom edits.
Remove a Saved style from an email
To remove a Saved style from an email click on the – minus icon in the panel. This will revert back to any styles directly applied to the email before the Saved style was applied.
Duplicate a Saved style
You can easily duplicate a Saved style if you want to create a similar style for different emails. Open an email with a Saved style applied, click the•••
menu icon and select “Duplicate”.
