Emailing Google Sheet range (with or without formatting) as a HTML table in a Gmail message
问题 So I have a Google Spreadsheet and want to create automated daily reports by emailing a portion of the range from my "Daily report" sheet as a HTML table using Google Spreadsheet triggers. I have some conditional formatting in the sheet to get it to paint all cells in column that have MAX(value) in said column. I've managed to create the code below which emails me the range but Gmail doesn't recognized it as a HTML table but plain text. I've tried using {htmlBody: htmltable} in the MailApp