我正在尝试将gobox gmail操作包含在google appscript发送的邮件中。 我在发送邮件之前记录整个身体。 这是html
<html>
<body>
<div itemscope itemtype="http://schema.org/EmailMessage">
<meta itemprop="description" content="Approvazione richiesta da Intranet Noovle"/>
<div itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction">
<meta itemprop="name" content="Accetta"/>
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler">
<link itemprop="url" href="https://www.google.com"/>
</div>
</div>
</div>
<div>
<p>Gentile
Mr X,
</p>
<p>Lorem ipsum...
</p>
...
...
</body>
</html>
如果我尝试从Google AppScript发送此电子邮件,但未将地址列入白名单但将邮件发送给发件人,则不会显示该按钮。
但是如果我尝试使用Google Validator(https://developers.google.com/gmail/actions/testing-your-schema),it验证动作gmail架构,然后尝试将真实邮件发送到当前记录的Google帐户(来自同一帐户,就像我在应用脚本中所做的那样) )
邮件正好跟着行动!
是否有任何App脚本限制?
答案 0 :(得分:0)
带有标记的电子邮件需要使用DKIM / SPF签名才能呈现操作。您使用的是Gmail帐户还是Google Apps帐户?对于后者,如果为域正确配置了DKIM,则应获得有效签名。