将电子邮件从表单发送到我自己的电子邮件(托管在Firebase上) [英] Sending an email from a form to my own email, hosted on firebase

查看:88
本文介绍了将电子邮件从表单发送到我自己的电子邮件(托管在Firebase上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站正在为客户开发,需要将该网站托管在firebase上。

I have a website that i am developing for a client that needs to have the website hosted on firebase.

该网站上有我需要的联系表格将电子邮件中的内容发送到网站所有者的电子邮件。

There is an contact form on the website that i need to send the contents in an email to the website owners email.

是否可以使用云功能发送电子邮件而不存储任何数据或身份验证?

Is there a way to send an email using cloud functions without storing any data or authentication?

或者是否有更好的解决方案可以使用?

Or if there is a better solution that could be used?

推荐答案

是的,看看Cloud功能的官方Firebase示例之一:

Yes, have a look at one of the official Firebase samples for Cloud Functions:

https://github.com/firebase/functions-samples/tree/master/email-confirmation

您也可以对其进行修改以使其使用Sengrid,以及其用于node.js的库 https:/ /github.com/sendgrid/sendgrid-nodejs 。效果很好。

You can also adapt it in order to use Sengrid, with their library for node.js https://github.com/sendgrid/sendgrid-nodejs. Works very well.

这篇关于将电子邮件从表单发送到我自己的电子邮件(托管在Firebase上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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