保存 Url 封由 google 应用开发者发送的电子邮件
Save Url of email sent by google app maker
我目前正在使用 Google App Maker 创建应用程序。当我使用 Gmail 在应用程序内发送电子邮件时,我想保存电子邮件的 URL 以便快速访问电子邮件的线程。我该怎么做?
我已经看到了:
google app maker 中的函数 sendEmail
没有 return url。
我想抓取一个 gmail 页面,但是对于 google 应用程序制造商来说它没用。
我已阅读所有 google 应用程序制作者文档,但尚未找到解决方案。
好的,就像 Markus Malessa 向我解释的那样。
您需要调用 GmailApp.createDraft().send().getId();
此调用将 return 刚刚发送的电子邮件的 ID。
What gonna happend here is The GmaillApp gonna create a Draft of your email and gonna send it and save the ID of the mail then you can combine a link with the id and when you gonna trying to access this link you gonna have a redirection to Gmail and gonna show the search mail (You have example below).
你可以找到什么参数createDraft()等待here.
您需要做的就是:
var mailId = GmailApp.create().send().getId();
var LinkMail = "https://mail.google.com/mail/u/0/?tab=rm#sent/" + mailId;
现在您可以访问刚刚发送的电子邮件并做您想做的事!
我目前正在使用 Google App Maker 创建应用程序。当我使用 Gmail 在应用程序内发送电子邮件时,我想保存电子邮件的 URL 以便快速访问电子邮件的线程。我该怎么做?
我已经看到了:
google app maker 中的函数 sendEmail
没有 return url。
我想抓取一个 gmail 页面,但是对于 google 应用程序制造商来说它没用。
我已阅读所有 google 应用程序制作者文档,但尚未找到解决方案。
好的,就像 Markus Malessa 向我解释的那样。
您需要调用 GmailApp.createDraft().send().getId();
此调用将 return 刚刚发送的电子邮件的 ID。
What gonna happend here is The GmaillApp gonna create a Draft of your email and gonna send it and save the ID of the mail then you can combine a link with the id and when you gonna trying to access this link you gonna have a redirection to Gmail and gonna show the search mail (You have example below).
你可以找到什么参数createDraft()等待here.
您需要做的就是:
var mailId = GmailApp.create().send().getId();
var LinkMail = "https://mail.google.com/mail/u/0/?tab=rm#sent/" + mailId;
现在您可以访问刚刚发送的电子邮件并做您想做的事!