有什么方法可以在转发前通过Google Apps脚本修改消息吗?

时间:2020-10-22 13:32:31

标签: google-apps-script

Gmail中的操作: 删除/隐藏发件人的电子邮件地址,并修改电子邮件正文中的字符串/单词。

1 个答案:

答案 0 :(得分:1)

尝试使用此:

function doGet() {
var thread = GmailApp.getInboxThreads(0,1)[0]; // Get first thread in inbox
var message = thread.getMessages()[0]; // Get first message
var text = (message.getPlainBody()); // get contents of the body
message.reply(text) //return contents
}

尝试查看更多选项(here)