简体   繁体   English

我如何获得我点击添加到我创建的每封邮件的主题和正文?

[英]How do I get the subject and body of every mail that I click to my add on that I created?

I want to create an add-on similar to Trello.我想创建一个类似于 Trello 的附加组件。 Every time you open a mail, Trello automatically fills in the "Name" and "Description" fields for you.每次您打开邮件时,Trello 都会自动为您填写“名称”和“描述”字段。 The name here is the "subject" of the mail and the description is the "body" of the mail.这里的名称是邮件的“主题”,描述是邮件的“正文”。 I want to achieve the same thing.我想实现同样的目标。

[trello-image-example][1] [trello-image-example][2] [my-add-on][3] [trello-image-example][1] [trello-image-example][2] [my-add-on][3]
Here is my code: https://www.toptal.com/developers/hastebin/pejasapero.php这是我的代码:https://www.toptal.com/developers/hastebin/pejasapero.php

I get this when I run my code:当我运行我的代码时,我得到了这个:

[content-not-available-image][4] [内容不可用图像][4]

[1]: https://i.stack.imgur.com/ykRJU.png [2]: https://i.stack.imgur.com/lTAv9.png [3]: https://i.stack.imgur.com/OgHGw.png [4]: https://i.stack.imgur.com/ibWzu.png [1]: https://i.stack.imgur.com/ykRJU.png [2]: https://i.stack.imgur.com/lTAv9.png [3]: https://i.stack. imgur.com/OgHGw.png [4]: https://i.stack.imgur.com/ibWzu.png

What you want to do is to create a Workspace Add-on .您要做的是创建一个Workspace Add-on

Here is a sample which shows, how to get data from a Email and integrate it into the Workspace Add-on. 下面是一个示例,展示了如何从 Email 获取数据并将其集成到 Workspace 插件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过邮件归还尸体? MailApp.sendEmail()错误 - How do I return the body in the mail? MailApp.sendEmail() error 如何在新创建的 Google 表格中使用我的插件菜单? - How can I get my add-ons menus available in newly created Google Sheets? 如何编辑我创建的库? - How do I edit a library that I created? 如何获得 email gmail python ZDB974238714CA8DE634A7CE1D083A14 的主题 - How can I get the subject of an email gmail python API 我如何触发每个编辑器运行 - How do I get a trigger to run for every editor 如何让此代码仅复制符合我的对象匹配条件的行? 目前如果复制每一行 - How do i get this code to copy only the rows that match my object matching criteria? currently if copies every row 如何获取我刚刚使用副本 function - google 脚本创建的 Google 表格文件的 URL - How do I get the URL for a Google Sheets file that I just created using the copy function - google script 如何使用应用脚本通过html标签将列表添加到电子邮件模板的正文中? 不希望使电子邮件全文 - How do I add list into body of email template via html tags using apps script? Not looking to make entire body of email html 我如何找到元素的每个组合 - How do I find every combination of elements 如何在代码中添加社交媒体图标? - How do I add social media icons to my code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM