如何指定MailApp的已读回执 [英] How to specify a read receipt for MailApp

查看:194
本文介绍了如何指定MailApp的已读回执的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Google Apps脚本的 MailApp 发电子邮件。当我发送电子邮件时,我希望能够跟踪邮件是否已打开。此电子邮件帐户是一个G Suite帐户,并且电子邮件阅读回执设置为允许将电子邮件阅读回执发送到任何电子邮件地址。



使用MailApp,我如何指定发送电子邮件的阅读回执?

解决方案

我相信这是 MailApp 类。我认为可能的唯一选择是使用方法 sendEmail(收件人,主题,正文,选项)。但是,此方法不包含请求阅读收据的任何选项,因为您可以在高级参数说明下查看。

我也检查了 GMAIL API 服务,并且没有办法做到这一点。帮助中心文章 此处 ,解释说明这是在gmail的网络用户界面中提供的,经过多次测试后,我发现这是不可能通过API的。



总之,通过使用apps脚本或Gmail API无法做到这一点。我现在唯一想到的是实现一个系统,在该系统中,您将在消息中包含一个唯一的图像,并跟踪图像何时加载。加载图像时,表示消息已被读取。我不知道如何实施这样的解决方案,但我知道是可能的。

I am using MailApp from Google Apps Script to send emails. When I send an email, I want to be able to track to see if the email was opened or not. This email account is a G Suite account and Email Read Receipts is set to "Allow email read receipts to be sent to any email address."

With MailApp, how do I specify to send the read receipt for the email?

解决方案

I believe this is not possible with the MailApp class. The only option I thought it would be possible is by using the method sendEmail(recipient, subject, body, options). However, this method does not include any option to request for a read receipt as how you can see under the Advanced parameters explanation.

I also checked the GMAIL API service and there is no option to do this as well. The help center article here, explains this is available inside the gmail web UI and after several testing, I found out this is not possible via API.

In summary, by using apps script or the Gmail API is not possible to achieve this. The only thing that comes to my mind right now, is to implement a system in which you will include a unique image in the message and track for when the image is loaded. When the image is loaded, that means the message has been read. I have no idea how to implement such solution but I know is possible.

这篇关于如何指定MailApp的已读回执的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆