Send HTML formatted emails

Hello,

I am using the Gmail pack to send an email, and I want to write the email format in HTML (especially a table). I found a pack called HTML Email Builder that helps with this, but I want to be able to modify the attributes of my HTML tags.

Do you have any suggestions?

Thank you.

I’d recommend using the Rich Text Tools pack, then rendering it as HTML in the content field of the email button. Rich Text Tools Pack, extend Coda with Rich Text... - Coda

I didn’t understand how to use it, for example how can I explain that I need a table in html format ?

You can view how to set up HTML tables here.

What I usually do is set up a table called Templates. In that table you can make a row called HTML Table. Then, in the canvas of that row, put the main table HTML, adding a {1} to the where you’ll enter the row values

<table>
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>

  {1}

</table>

Then, on the table where you want to pull the data from, make a column called HTML Insert, and configure it like this:

  <tr>
    <td>thisrow.Company</td>
    <td>thisrow.Contact</td>
    <td>thisrow.Country</td>
  </tr>
  <tr>

Then, wherever you want the table to appear, you write a formula like this:

format(@HTML Table.template, [formula filter for what values you want].HTML Insert.Join(“”) )

Depending on the email template, you’ll have to mess around with where you enter the .tohtml(). This is a huge pain though and I would love an easier solution if anyone has one.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.