添加编辑响应链接到电子邮件

时间:2013-11-21 17:37:21

标签: google-apps-script

如何添加"编辑回复链接"到电子邮件,我使用下面的脚本,但不确定这是否可能

function myNotification(e) {
  if( e.values[10] == "FAIL" ) {
    MailApp.sendEmail(
       "email@jci.com",
       "Process Confirmation Audit Failure",
       "Please Review And Post Follow-Up Actions"
    ); 
  } 
}

1 个答案:

答案 0 :(得分:0)

我不确定“编辑回复链接”是什么意思,但您可以将HTML格式添加到电子邮件中,使用MailApp略有不同。像这样:

MailApp.sendEmail(
   "email@cji.com",
   "Process Confirmation Audit Failure",
   "",
   {
      htmlBody: "Please revie... <br/> <a href='Link'>ResponseLink</a>"
   }
)