Creating an email alert to show list of items in an invoice

Hello , please which jinja tag can i use in my email alert to pull the items table in a sales invoice.

@PICK_MIX I dont know if this will work

 {{ render_table(doc.items) }}

If it dont work, you need build the table using

<table>
   <thead>
     <tr>
       <td>Caption1</td>
       <td>Caption2</td>
   </thead>
   <tbody>
   {{ for row in doc.items }}
     <tr>
        <td>{{ row.idx }}</td>
        <td>{{ row.item_code }}</td>
    </tr>
  {{ endfor }}
  </tbody>
</table>

This stretch requires adaptions for your requirements