通过 Google Cloud Platform 从 Firebase 发送自动电子邮件(无第三方) [英] Sending automated emails from Firebase through Google Cloud Platform (no third parties)

查看:27
本文介绍了通过 Google Cloud Platform 从 Firebase 发送自动电子邮件(无第三方)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经做了几个小时的研究.

We've been doing some research for many hours already.

到处出现的第一个解决方案(其他 StackExchange 问题也是如此)是使用第三方服务 SendGrid.com,有时还与 Zapier 结合使用,但这不是我们想要实施的方法.

The first solution that appears everywhere (other StackExchange questions too) is using third-party service SendGrid.com and sometimes in conjunction with Zapier, but that's not the approach we are wanting to implement.

对于在中间没有第三方的情况下发送,第一个似乎可行的解决方案是Firebase 触发器",它在 2014 年 Google I/O 上宣布但从未实现,并且 似乎已合并到仍处于 Alpha 阶段的 Google Cloud Functions.

For sending without third-parties in the middle, the first solution that seemed viable was "Firebase Triggers", which was anounced on Google I/O 2014 but never came to life and seemingly was merged into Google Cloud Functions which is still in Alpha.

我很确定我大约一年前在 FireBase 博客的链接中看到了解决方案,但是 关于这件事的唯一一篇似乎已经存在的帖子现在是空的.

I'm pretty sure I had seen the solution almost a year ago in a link on the FireBase blog, but the only post that seems to have existed upon that matter is now empty.

我们以前从未使用过 GCP,但我们的逻辑告诉我们应该使用另一个 GCP 现有 API 和 Mail API 显然是正确的,但我们的 Firebase Web 似乎没有任何方法应用可以发出请求.

We've never worked before with GCP, but our logic tells us this matter should be solved (inside Google) using with another GCP existing API, and the Mail API is apparently the correct one, but there seems not to be any way our Firebase Web App could make the request.

谁能(最好有 GCP 经验)解释一下这里的情况,以及 Google 期望 FireBase 开发人员如何向他们的客户发送电子邮件?

Could anyone (preferably with GCP experience) please explain what's the situation here, and how does Google expects it's FireBase developers to send emails to their clients?

推荐答案

Firebase 函数

正如@ajostergaard 所言,今天 Google 宣布期待已久的 Google Cloud Functions,但正是为了Firebase 他们已经实现了自己特定的 Firebase 函数,它替代了 自 2014 年 11 月起在会议中显示的触发器(超过 2 年前!)和 在 Firebase 群组中提及.

Firebase Functions

As gracefully stated by @ajostergaard, TODAY Google has announced its much waited Google Cloud Functions, but precisely for Firebase they've implemented their own specific Firebase Functions which substitutes the Triggers shown in conferences since Nov. 2014 (more than 2 years ago!) and mentioned in Firebase groups .

这是一个示例链接,准确解释了如何执行此问题中所要求的操作:

This is an example link that explains exactly how to do what is asked in this question:

这篇关于通过 Google Cloud Platform 从 Firebase 发送自动电子邮件(无第三方)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆