Forum Discussion

pranjbhatt's avatar
pranjbhatt
New Contributor III
12 months ago
Solved

Email Sender Snap - Send data as HTML Table

Hi, 

I am receiving data from Mapper (4 columns, multiple rows) and want to email it as Table.
I tried HTML Table option under Email Send send but do not know the how to call data in email body.

Do you have any template to look into?

  • This is from an older pipeline I have in my archives, so it may need to be tested, but I used something like this:

    <!DOCTYPE html>
    <html>
    <head>
        <title>Title to Show at the top</title>
        <style type="text/css">
            table.Snap {background-color:transparent;border-collapse:collapse;width:100%;}
            table.Snap th, table.Snap td {text-align:center;border:1px solid black;padding:5px;}
            table.Snap th {background-color:AntiqueWhite;}
       </style>
    </head>
    <body>
        <p>Sentence describing the table:</p>
        <table class="Snap">
        </table>
        <p>Any text you need after the table.</p>
    </body>
    </html>

1 Reply

  • This is from an older pipeline I have in my archives, so it may need to be tested, but I used something like this:

    <!DOCTYPE html>
    <html>
    <head>
        <title>Title to Show at the top</title>
        <style type="text/css">
            table.Snap {background-color:transparent;border-collapse:collapse;width:100%;}
            table.Snap th, table.Snap td {text-align:center;border:1px solid black;padding:5px;}
            table.Snap th {background-color:AntiqueWhite;}
       </style>
    </head>
    <body>
        <p>Sentence describing the table:</p>
        <table class="Snap">
        </table>
        <p>Any text you need after the table.</p>
    </body>
    </html>