Hey there @ritvik_singhvi!
You can certainly generate HTML and send it using the sendgrid application. There's a post here that gives an example of how to generate the HTML though there may also be 3rd party libraries you can use to do the same (docs on how to add those here!)
I understand HTML tables in emails can be a bit limited in terms of CSS options depending on the recipient's email service and that any CSS used will likely need to be inlined. Do you have an example of how you'd like the table to look in the email itself?
