【问题标题】:Send mail from Google Cloud Function using appspotmail.com使用 appspotmail.com 从 Google Cloud Function 发送邮件
【发布时间】:2019-08-20 17:14:34
【问题描述】:

我正在尝试使用 appspotmail.com throw google cloud 功能向我的组织用户发送电子邮件。

有可能吗? 有人有什么想法吗?

根据article,可以使用 appengine,但 Cloud Function 没有指示这样做

【问题讨论】:

    标签: email google-cloud-platform google-cloud-functions


    【解决方案1】:

    Mail API 专用于App Engine Standard 1st generation runtimes,因此不适用于任何其他环境。

    您可以使用文档中的替代方法,例如 Sendgrid

    【讨论】:

    • 我在 Cloud Functions (Python) 中使用 Gmail,效果很好。
    • 不,是 SMTP 接口。
    • @John 我以文档为基础,但您的解决方案看起来很有趣。随意写一个完整的答案,因为它可能比使用 Sendgrid 更好。
    • 使用 sendgrid 等服务有很多好处。我喜欢你的回答。如果提问者想要一个使用 Python smtplib、Gmail 和 Cloud Functions 的示例,请创建一个新问题,我将发布我的代码。
    猜你喜欢
    • 2020-11-15
    • 1970-01-01
    • 1970-01-01
    • 2020-09-24
    • 1970-01-01
    • 1970-01-01
    • 2022-08-16
    • 2021-06-06
    • 2017-04-28
    相关资源
    最近更新 更多