【问题标题】:Can I send auto generated email via Cloud Function and GSuite GMail API?我可以通过 Cloud Function 和 GSuite GMail API 发送自动生成的电子邮件吗?
【发布时间】:2019-05-29 09:13:09
【问题描述】:

我有 GSuite 组织和 Google Cloud 项目。我需要在谷歌云调用上从 f.e auto@myorg.com 发送自动生成的电子邮件。有可能吗?

有很多示例如何通过 gmail 从云功能发送电子邮件。但是如何使用我的组织电子邮件作为发件人来源。

【问题讨论】:

    标签: gmail google-cloud-functions google-workspace


    【解决方案1】:

    您可以尝试使用service account

    您需要delegate domain-wide authority to a service account 绑定到您的 GCP 项目,并启用适当的范围以通过 gmail api 发送电子邮件。

    正确配置服务帐户后,您可以在云功能中利用 google api node.js client library 和您的服务帐户凭据代表组织内的任何用户发送电子邮件。

    【讨论】:

      猜你喜欢
      • 2019-01-24
      • 1970-01-01
      • 2020-01-06
      • 2012-01-07
      • 2023-03-19
      • 2016-09-09
      • 1970-01-01
      相关资源
      最近更新 更多