【问题标题】:How to set Content-type and MIME-Version headers in GmailApp.sendmail?如何在 GmailApp.sendmail 中设置 Content-type 和 MIME-Version 标头?
【发布时间】:2013-09-06 22:48:11
【问题描述】:

如何在 Google Apps 脚本的 GmailApp.sendmail 中设置自定义 Content-type 和 MIME-Version 标头?

【问题讨论】:

    标签: email google-apps-script google-apps


    【解决方案1】:

    据我所知,GmailApp 不会为您提供这种功能,这是他们的基础设施,他们希望对流经的内容有一定的控制权,并依靠自动化方法来确定。

    另一方面,我们可以使用GmailAttachment.SetContentType 方法为附件设置自定义内容类型。

    干杯

    【讨论】:

    • 很不幸 :( 我认为允许设置 Content-type 和 MIME-Version 不会对 Google 产生安全影响.....
    猜你喜欢
    • 1970-01-01
    • 2019-04-19
    • 2016-02-27
    • 2013-12-10
    • 2015-05-05
    • 2011-01-04
    • 2011-01-26
    • 2014-05-23
    • 1970-01-01
    相关资源
    最近更新 更多