我在Angular5应用程序中创建了一个简单的联系表单 . 内容存储在Firestore中 . 精细 .

但现在我想添加一个新功能:当用户提交联系表单时,我希望收到一封包含表单内容的电子邮件 . 内容是基本的(仅文本) .

我尝试使用Sendgrid,Firebase函数的一些案例......没有成功 .

Sending automated emails from Firebase through Google Cloud Platform (no third parties)发送自动电子邮件(存储在index.js中)以进行新的firebase身份验证 .

但在我的情况下,我想从角度组件(联系表单)触发邮件(index.js) .