【问题标题】:How to change link colour when send through google apps script通过谷歌应用脚​​本发送时如何更改链接颜色
【发布时间】:2014-08-15 16:29:17
【问题描述】:

【问题讨论】:

    标签: google-apps-script


    【解决方案1】:

    像这样尝试:

    function testmailHTML(){
      var strTitle = 'go to this test'
      var newMsg = "<a href='www.google.com' style=color:red /a>" + strTitle ;
      GmailApp.sendEmail("xxxxx@gmail.com",'EMAIL_TITLE', "", {htmlBody: newMsg });
    }
    

    结果如下:

    【讨论】:

    • 非常感谢。有用!我有红色的链接。
      仅供参考。我也试过 var newMsg = "" + strTitle ;它将在 gmail 中以黑色显示链接。
    猜你喜欢
    • 2013-06-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 2013-03-09
    • 2017-06-29
    相关资源
    最近更新 更多