通过Google Cloud Platform从Firebase发送自动电子邮件(无第三方)

时间:2022-02-01 15:24:20

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

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

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

到处出现的第一个解决方案(其他StackExchange问​​题)也在使用第三方服务SendGrid.com,有时与Zapier一起使用,但这不是我们希望实现的方法。

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触发器”,它在Google I / O 2014上被宣布但从未复活,似乎已合并到仍在Alpha中的Google Cloud Functions。

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.

我很确定我几乎在一年前在FireBase博客的一个链接中看到了这个解决方案,但是这个问题上似乎存在的唯一帖子现在是空的。

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,但是我们的逻辑告诉我们这个问题应该使用另一个GCP现有API来解决(在Google内部),而且Mail API显然是正确的,但似乎没有任何方式我们的Firebase Web App可以提出请求。

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?

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

1 个解决方案

#1


11  

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 .

正如@ajostergaard优雅地表达的那样,今天谷歌已经宣布了其等待的Google云功能,但正是对于Firebase,他们已经实施了自己的特定Firebase功能,这些功能取代了自2014年11月(超过两年前!)以来会议中显示的触发器。并在Firebase组中提及。

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

这是一个示例链接,可以准确地解释如何执行此问题中的问题:

#1


11  

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 .

正如@ajostergaard优雅地表达的那样,今天谷歌已经宣布了其等待的Google云功能,但正是对于Firebase,他们已经实施了自己的特定Firebase功能,这些功能取代了自2014年11月(超过两年前!)以来会议中显示的触发器。并在Firebase组中提及。

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

这是一个示例链接,可以准确地解释如何执行此问题中的问题: