在 Firebase 数据库中匹配时发送电子邮件 [英] Send Email When Match in Firebase Database

查看:21
本文介绍了在 Firebase 数据库中匹配时发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 AngularJS 和 Firebase 构建一个网络应用程序,该应用程序向两个匹配特定参数的用户发送电子邮件.用户首先提交他们的信息,如果与数据库中的另一个人匹配,我想向这两个人发送电子邮件.例如,如果 A 和 B 两个人的年龄都为 25 岁,我想给 A 和 B 发送一封包含某些信息的电子邮件.这可以使用 Firebase 吗?

I'm trying to build a web app using AngularJS and Firebase that sends an email to two users that match on certain parameters. The users submit their information first and if there is a match with another person in the database, I want to send an email to both those people. For example, if two people, A and B both have the age of 25, I would like to send A and B an email with certain information. Is this possible using Firebase?

推荐答案

如果你没有运行服务器

您可以使用 Zapier 之类的服务来实现它.

You could achieve it by using a service like Zapier.

您可以创建一个链接 FireBase 和 Mandrill 之类的电子邮件服务的 zap.

You could create a zap linking FireBase and an e-mail service like Mandrill.

A Zap combines triggers and actions — whenever the trigger event occurs, Zapier automatically completes the action for you!

当匹配时,更新 FireBase 数据库中的特殊键.

When there is a match, update a special key in your FireBase database.

当 Zapier 正在侦听该特定密钥的更新时,它会通过 Mandrill 发送您的电子邮件做出反应.

As Zapier is listening to updates of that particular key, it will react by sending your e-mails via Mandrill.

2017 年 3 月更新

新工具现已添加到 Firebase 以触发数据库事件处理程序:

New tools have now been added to Firebase to trigger database event handlers:

您的服务器可以轻松检查 FireBase 中的值并相应地发送电子邮件.那将是一个

Your server can easily check the values in FireBase and send e-mails accordingly. That would then be a

是的,当然 :)

这篇关于在 Firebase 数据库中匹配时发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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