# SendGrid + substitution tag: Send dynamic list with line breaks via email 🤓

**URL:** <https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178>\
**Category:** Tips\
**Created:** [October 7, 2020, 9:23pm UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178 "2020-10-07T21:23:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alejandrowunderlich](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alejandrowunderlich/32/97601_2.png) [@alejandrowunderlich](https://forum.bubble.io/u/alejandrowunderlich)\
**Post date:** [October 7, 2020, 9:23pm UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178/1 "2020-10-07T21:23:20Z")

</div>

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.

1. Add a code block in your SendGrid template:

![image](https://us1.discourse-cdn.com/bubble/original/3X/2/b/2b18bf13f820dd155208d56a09925d768b893bd5.png)

1. Add your tag that will contain the list with triple brackets: `{{{list}}}`
2. {{{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.

![image](https://us1.discourse-cdn.com/bubble/original/3X/8/e/8ecd5c6910901197e789e411915d08a2309b4f7f.png)

**Voila! Your SendGrid email will have pretty lists separated with line breaks.**  
💪

---

<div class="post-metadata">

**Author:** ![jgordon](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jgordon](https://forum.bubble.io/u/jgordon)\
**Post date:** [October 12, 2020, 4:13pm UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178/2 "2020-10-12T16:13:40Z")

</div>

This just saved my life for today. Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![alejandrowunderlich](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alejandrowunderlich/32/97601_2.png) [@alejandrowunderlich](https://forum.bubble.io/u/alejandrowunderlich)\
**Post date:** [October 15, 2020, 6:11pm UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178/3 "2020-10-15T18:11:26Z")

</div>

This is awesome, happy to help!

---

<div class="post-metadata">

**Author:** ![o.balesi](https://avatars.discourse-cdn.com/v4/letter/o/d9b06d/32.png) [@o.balesi](https://forum.bubble.io/u/o.balesi)\
**Post date:** [April 29, 2021, 4:54pm UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178/4 "2021-04-29T16:54:14Z")

</div>

> [@alejandrowunderlich](#):
>
> {{{liste}}}

Thanks, 2 days I was looking for how to do it!!!

---

<div class="post-metadata">

**Author:** ![alejandrowunderlich](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alejandrowunderlich/32/97601_2.png) [@alejandrowunderlich](https://forum.bubble.io/u/alejandrowunderlich)\
**Post date:** [April 29, 2021, 5:27pm UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178/5 "2021-04-29T17:27:00Z")

</div>

Awesome, that’s what we’re here for 😉

---

<div class="post-metadata">

**Author:** ![will.nft.works](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@will.nft.works](https://forum.bubble.io/u/will.nft.works)\
**Post date:** [January 3, 2023, 3:44am UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178/6 "2023-01-03T03:44:21Z")

</div>

Thanks. I’ve been messing with this all day. How do I pass in a single name? Ive tried {name}, {{name}}, { name }, {{ name }}, -name-, - name -.

Am I the only one who can’t figure this out?

![image](https://us1.discourse-cdn.com/bubble/original/3X/a/9/a9f499ae40df5d9115a68c955ee0bd4a0d54e454.png)

I used firstname in the example above.

---

<div class="post-metadata">

**Author:** ![will.nft.works](https://avatars.discourse-cdn.com/v4/letter/w/3bc359/32.png) [@will.nft.works](https://forum.bubble.io/u/will.nft.works)\
**Post date:** [January 3, 2023, 4:48am UTC](https://forum.bubble.io/t/sendgrid-substitution-tag-send-dynamic-list-with-line-breaks-via-email/115178/7 "2023-01-03T04:48:56Z")

</div>

Just deleted my dynamic template and started over. Works now using {{firstname}}.

Guess we’ll never know
