Embed HTML table in email

前端 未结 5 2139
攒了一身酷
攒了一身酷 2021-02-14 11:16

Is it possible to send a table (coded in html) as the body of an email so that the recipient is able to view the table (parsed and displayed).

For example, I want to be

5条回答
  •  情话喂你
    2021-02-14 12:04

    Some years ago I found that you can insert a table in the email body when using Thunderbird. Since then I have switched to mutt. So, out of curiosity, I created a table in html by using latex2html on a simple latex table. I then opened the mutt editor to create an email and copied and pasted the html code into the mutt editor and closed it to go to the mutt compose menu. Before sending the email, I used Ctrl-t to edit the content type and change it from "text/plain" to "text/html". Upon sending the email and opening it in gmail in a browser, the table appeared exactly as I would have wanted.

    So, in summary, one can paste an html table into the mutt editor (vim, in my case) and just change the content type before sending it.

提交回复
热议问题