Join us at the Everyday AI Conference in London, New York & Bengaluru! REGISTER NOW

how to format a table to be included in html email sent by scenario

hruanosu
Level 1
how to format a table to be included in html email sent by scenario

Hello , I have an scenario which sends an email at the end . In the body of the email I want to include one table . I do it but the text withing the cells is not center and I would like to format it . Does anyone know how to do it ?

<td style="font-family: sans-serif; font-size: 14px; vertical-align: top; text-align: center;">
<br>
${table_recap_voice}
</td>

Thanks a lot,

Héctor

0 Kudos
2 Replies
sj0071992
Neuron
Neuron

Hi @hruanosu ,

 

Could you please help me understanding with the screenshot of the sample output and what is expected?

Meanwhile try something like in Freemaker Template

<head>
<style>
table, th, td {
  border: 1px solid white;
  border-collapse: collapse;
}
th, td {
  background-color: #96D4D4;
}
</style>
</head>
<p>
   Add your Email Body
</p>
<table border=1>
${table_recap_voice}
</table>
<p>
    This is an Auto Generated Email
    <br></br>
    <br>Best Regards,</br>
    XYZ Team
    </p>

 

I hope this will help

0 Kudos
hruanosu
Level 1
Author

Hello @sj0071992 ,

Thanks a lot for your answer , attached an screen capture with the table ( names are hidden for confidentiality )

There are 4 columns : AM , #_Alerts , Volume_Delta , Revenue_Drop .. I would like to center the content as it's aligned to the left.

Thansk a lot

 

 

0 Kudos