Data driven html

hi does anybody know how i could populate an html email template with text from a database?

this could be as simple as an excel spreadsheet filled with a title, text and bullet points.

i was looking at doing something in indesign with xml. a client wants to know if this is possible.