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

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

问题描述



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



在没有第三方的情况下中间,似乎可行的第一个解决方案是Firebase触发器,它是在Google I / O 2014上发布的,但从未出现过,并且看起来已经合并到Google Cloud Functions 中了,它仍然在Alpha中。

大概一年前,我已经在FireBase博客的链接上看到了这个解决方案,但是似乎已经存在的唯一职位现在是空的



我们从来没有使用过GCP,但是我们的逻辑告诉我们,这个问题应该在Google的内部使用另一个GCP现有的API和 Mail API 显然是正确的,但似乎没有任何方法可以实现我们的Firebase Web应用程序可以提出请求。



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

解决方案

Firebase函数



正如@ajostergaard ,今天谷歌已经宣布其等待 Google云端函数 strong>,但正是为了Firebase,他们已经实施了自己的特定 Firebase函数自2014年11月以来在会议中显示的触发器(超过2年前!)和



这是一个示例链接,解释了如何做这个问题:

$ ul

  • 从Firebase发送邮件(最后!正好赶上我们的WebApp)


  • 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.

    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.

    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.

    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.

    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 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云端平台从Firebase发送自动发送的电子邮件(无第三方)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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