Automated emails get condensed

:bullseye: What is your goal?

As a first step getting to know the system I made an automation that sends an email to all new contacts in my hubspot.

:thinking: What is the problem?

When the email landed in the contacts inbox the whole email was condensed into one large line instead of with paragraphs.

:test_tube: What have you tried so far?

I honestly didnt know where to begin.

:link: Create public scenario page

:camera_with_flash: Screenshots: scenario setup, module configuration, errors

1 Like

Hey there,

you need to format the email using HTML tags.

<br>

Is for new line for example.
I personally use this editor.

1 Like

Welcome to the Make community!

Newlines & Paragraphs in HTML

Inserting new lines / paragraphs in HTML emails is actually a very commonly-asked question!

Have you seen these previous discussions?

Your question may already have answers here:

Expand list of similar questions

Based on the above, you may have asked a very similar or duplicate question. To get to a solution faster, you can search this forum for existing answers and the Help Centre. This also helps keep our community organised as the same question won’t get asked many times over again!

Still require assistance?

If the previous/related discussions are not similar to your question, please provide additional details to demonstrate the difference/s between your question and the ones above.

If you require help understanding or implementing workarounds/solutions in the related discussions, please reply with more details of what you have tried, including screenshots.

How To Format Layout & Content In HTML

A. Use an External WYSIWYG Editor

For marketing emails, newsletters, or anything needing a branded look, you shouldn’t try to hand-code the HTML inside Make. A WYSIWYG (what you see is what you get) editor allows you to drag-and-drop elements like tables and images to build layouts.

Usually, WYSIWYG editors has a menu item or button to allow you to view/export the generated HTML source code. You can then replace placeholder text in your exported HTML with variables from other modules.

Here are some WYSIWYG editors that you can use online:

  1. HugeRTE — hugerte.org
  2. TinyMCE — tiny.cloud
  3. Summernote — summernote.org

B. Use an AI Module / Prompt

You can also use an AI module, and prompt it to convert plain text into HTML (or output as HTML format). However, the result may be limited to simple structural layouts, and it can’t really design a professionally-designed email newsletter.

C. Markdown to HTML Module

If your content is already in Markdown format, you can use the Markdown “Markdown to HTML” module to convert your Markdown content to HTML.

D. Use Replace Function to Insert Newlines

If you don’t care about design, and just want to ensure that multiple newlines are converted into HTML break tags, then all you need is to use the built-in replace function. I’ve described this method in several of the linked duplicates above.

In essence, here’s how it can be used in its most basic form:

{{ replace(1.text; "/\r?\n/g"; "<br>") }}
:high_voltage: Make Input Markup: Copy-paste the above into the field, including start/end curly brackets for it to import as intended :warning:

Hope this helps! If you are still having trouble, please provide more details.

— @samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!