I wrestled with this question for a few minutes, then found an obscure tip in Stack Overflow:
When wrapping tags with double brackets {{list}}
, SendGrid interprets that as plan text.
Wrapping that tag in triple brackets {{{list}}}
and SendGrid will interpret it as HTML.
- Add a code block in your SendGrid template:
- Add your tag that will contain the list with triple brackets:
{{{list}}}
- Surround that tag with HTML paragraph tags:
{{{list}}}
Back in Bubble, add the substitution tag “list”. Inside this tag add your list of things data field and “join with” <br>
line break HTML tag.
Voila! Your SendGrid email will have pretty lists separated with line breaks.