Email content authoring
In Adobe Marketo Optimizer, the email design space provides a visual canvas where marketers compose email. The email design tools in the left and top panels (structures, content components, templates, fragments, and more) support building from scratch with drag and drop. You can also choose to start from a template, paste raw HTML, or assemble messages from reusable visual fragments.
In Marketo Optimizer, every email is associated with a Send Email action within a person journey. The full workflow from journey design to email definition happens in one continuous experience. When you add a Send Email node to a person journey, click Create email to start the process. First you define the Actions and content settings for the email. Click Edit email body to launch the email content design space, where you can choose how you want to design your email from the following options:
-
Design your email from scratch using the visual design interface. Build the email layout component by component using drag-and-drop on a blank canvas. This method is best for creating new templates or one-off emails.
-
Import existing HTML content into the code editor or work side-by-side with the visual canvas.
-
Select an existing template from a list of built-in or custom email templates. This method is best for repeatable email use cases.
Email design tools email-design-tools
- Top toolbar: Save, Back, Switch to code editor, preview controls.
- Left panel: Structures (column layouts), Contents (text, button, image, divider, social, HTML), Fragments, Templates, Navigation tree (DOM-style hierarchy of the email).
- Center canvas: WYSIWYG editor with desktop and mobile preview.
- Right panel: Settings and styles for the currently selected component, including content properties, background, border, padding, and personalization.
Email design best practices design-best-practices
Following HTML and CSS best practices helps ensure consistent rendering across email clients.
Design your email from scratch design-from-scratch
Use the visual content design space to define the structure and content of the email. By adding and moving structural components with simple drag-and-drop actions, you can design the layout and organization of the email content within seconds.
- From the Design your email page, select the Design from scratch option.
-
Add structure and content components in the canvas.
When you are satisfied with the content, click Save.
Import existing HTML content import-html-content
Imported content can be:
-
An HTML file with an incorporated style sheet
-
A .zip file that includes an HTML file, the style sheet (.css), and images
note NOTE There are no constraints on the .zip file structure. However, references must be relative and fit with the tree structure of the .zip folder. The images are always uploaded to the assets repository.
To import a file containing HTML content:
-
From the design home page, select the Import HTML option.
-
Drag and drop the HTML or .zip file containing your HTML content and click Import.
<table> tag as the first layer in an HTML file can cause style loss, including background and width settings in the top layer tag.You can personalize the imported content as needed with the visual email editor tools.
Select a template templates
When you open the email design space, use the Select design template section to start from a built-in sample template or a saved custom template. See Use a template in an email for the full workflow.
Add structure and content structure-content
Use the visual email editor to build out your email message. Add a preheader, structure the layout with columns and dividers, then populate those structures with content components such as images, buttons, and text. You can also apply custom CSS for advanced styling and preview how the design renders in dark mode.
Set the preheader preheader
The preheader is the snippet of text shown after the subject line in inbox previews. In Marketo Optimizer, the preheader is configured on the visual canvas in the email design space — not on the email properties screen alongside the subject line.
With the Body selected in the left navigation tree, open the Settings panel on the right.
Click in the Preheader text region and enter your preheader copy. Click the Add personalization (
Dark mode dark-mode
Dark mode rendering is supported via CSS prefers-color-scheme media queries. The email design tools include a dark mode preview and options to define custom styling for supporting email clients — helping you validate that text remains readable, logos are visible, and brand colors hold up against dark backgrounds.
For detailed guidance on previewing, configuring custom dark mode settings, email client support, and testing best practices, see Dark mode for email content.
Add structure and content components components
Build your email layout by adding structure components and content components to the canvas.
Drag items from the Structures and Contents sections in the left panel, then configure each component in the Settings and Styles tabs on the right.
Add custom CSS custom-css
You can add custom CSS directly in the email design space for advanced styling beyond standard component settings. It is a best practice to add this highest-level styling before you include content components, such as images, buttons, and text.
See Add custom CSS for your content for steps, syntax rules, and troubleshooting.
Add fragments visual-fragments
A visual fragment is a reusable design component that can be referenced by multiple content assets across Marketo Optimizer. It is usually a block of content that can be pre-created and quickly inserted to make authoring quicker and more consistent.
The following example outlines steps to add fragments as you author your content.
-
To open the fragments listing, select the Fragments icon (
).You can:
- Sort the listing.
- Browse, search, or filter the listing.
- Switch between thumbnail and list views.
- Refresh the list to reflect any of the recently created fragments.
{width="700" modal="regular"}
-
Drag and drop any of the fragments into the structural component.
The editor renders the fragment within the section/element of the email structure.
The content of the fragment is dynamically updated within the structure to preview how the fragment renders in your email.
After the email is saved, it appears in the fragment details page when you select the Used By tab in the summary.
Add image assets insert-image
When Marketo Optimizer is provisioned, the existing Marketo Design Studio assets are available in the email design space. You can browse and insert these images into your emails directly from the asset picker.
Supported image file types:
- Fully supported (visible in picker, embeddable inline): JPG, PNG, GIF, WebP.
- Accessible with caveat: SVG (with a warning that some email clients do not render SVG).
- Not supported in this Beta release: TIFF, PDF, DOCX, XLSX, PPTX, CSS, JS, HTML, TXT, binary files, PSD, AI, INDD.
In the visual content design space, select the Assets (
-
Add a new asset by dragging and dropping the image asset into a structure component.
{width="800" modal="regular"}
-
Replace an existing image asset by selecting it on the canvas and clicking Select Asset in the image source tools.
{width="600" modal="regular"}
For more information about using assets, see Use assets for content authoring.
Navigate the layers, settings, and styles navigation-layers
Use the navigation tree to select components and columns, then adjust their settings and styles in the right panel. See Navigation tree.
Personalize content personalize-content
Marketo Optimizer uses Handlebars syntax for personalization. Tokens are replaced at send time with values from each recipient’s profile data. There are multiple places where you can use personalization in an email:
- Subject line — most common personalization point.
- Preheader — set inside the visual canvas; supports profile attribute tokens.
- Email body text — first names and other profile attributes inserted inline.
- Button URLs — append per-recipient parameters.
To add personalization:
- In the email design space (or on the email properties page for the subject line), click the field where you want to insert a token.
- Click the Personalize (
) icon to use a personalization token. - In the personalization dialog, browse the schema tree on the left. Profile attributes (first name, last name, email, job title, and other profile fields) are listed.
- Select an attribute. The editor inserts the corresponding Handlebars expression — for example,
{{profile.firstName}}. - Add a fallback value to handle missing data:
{{profile.firstName | default: "there"}}. - Click Confirm or Insert. The expression appears inline in the field.
Use Handlebars expressions such as the following (personalization uses the same syntax described in Personalize content):
{{profile.lastName}}— Insert the recipient’s last name.{{profile.jobTitle}}— Reference the recipient’s job title in body copy.{{profile.firstName}}, ready to take the next step?— Combine token and static text inline.
For a first-name greeting with a fallback when the value is missing, use the default helper as shown in the earlier personalization steps (for example, first name with default "there").
Beyond default, the personalization editor includes built-in Handlebars helpers for conditional logic, text transformation, and date formatting. Use the editor’s function browser to explore available helpers and insert them with the correct syntax.
| note tip |
|---|
| TIP |
In the email design space, type {{ directly in any text field to trigger an inline autocomplete dropdown listing available profile attributes — no need to open the full personalization dialog for quick insertions. |
For details about expression editor tools and syntax, see Personalization expressions.
Edit linked URL tracking preview-and-edit-linked-urls
The link tracking panel provides a centralized view where you can easily locate each URL in the content. Click the Links icon (
To define tracking for a listed content link, click the Edit (
Check and test the email check-and-test-the-email
Use the desktop and mobile preview controls in the email design space toolbar to review your email layout before saving. Switch to dark mode preview to validate readability and contrast (see Dark mode for email content).
Test profiles, Simulate content, and send proof workflows are not available in this Beta release. See Current limitations in the email channel overview.
Review Validating email content for content alerts you must resolve before journey activation.
Validating email content validation
Before your journey can be activated, the email content must be valid. Marketo Optimizer surfaces content-level alerts on the email and on the journey canvas. This section covers the alerts you may see and how to resolve them.
Common content alerts content-alerts
default helper as described in Personalize content. Alternatively, restrict the journey audience to profiles where the attribute is guaranteed.