1
我已經設置了一個腳本來通知用戶,當一個新的條目已經提交給共享電子表格。我正在嘗試以下操作,但電子郵件以純文本格式發送:谷歌腳本不發送電子郵件爲HTML
function formSubmitReply(e) {
var emailAddress = ' *email addresses* ';
var URL = ' *URL to send as link* ';
var message = "<HTML><BODY>"
+ "<P>" + " A new guest complaint has been entered into the database."
+ '<P>To view the spreadhseet, <A HERF="' + URL + '">click here</A>.'
+ "</HTML></BODY>";
MailApp.sendEmail(emailAddress, "New Guest Complaint", "", {htmlBody: message});
}
有什麼建議嗎?
謝謝!完美工作。 – user3795414