Sending an email in HTML and plain with a Gmail Apps Script
问题 I'm writing an auto-replying bot for gmail using Google Apps Script (http://script.google.com). Each time I use GmailThread 's Reply to reply to message: var htmlbody = "Hello<br>This is a <b>test</b>.<br>Bye."; var body = "Hello,\nThis is a test.\nBye."; thread.reply(body, {htmlBody: htmlbody, from: "Myself <hello@example.com>"}); I need to write the message both in plain text body and HTML in htmlbody . Would there be a way to write an email only in HTML (to avoid writing every email