在 Flutter 中发送电子邮件(Firebase 后端)

Send E-Mail in Flutter (Firebase Backend)

我正在使用 Flutter-Web 创建我的个人网站。我使用 Firebase 作为后端,并将在 Firebase 上托管网站。
在我的“联系我”页面中,我创建了一个包含以下详细信息的表格

  1. 姓名
  2. 电子邮件
  3. 主题
  4. 留言

我想通过电子邮件将此详细信息发送给我,并将相同的详细信息发送到在电子邮件字段中输入的电子邮件

我打算使用 https://firebase.google.com/products/extensions/firebase-firestore-send-email 扩展程序来发送电子邮件。

下面是简要说明的片段。

How this extension works

Use this extension to render and send emails that contain the information from documents added to a specified Cloud Firestore collection.

Adding a document triggers this extension to send an email built from the document's fields. The document's top-level fields specify the email sender and recipients, including to, cc, and bcc options (each supporting UIDs). The document's message field specifies the other email elements, like subject line and email body (either plaintext or HTML)

我的理解是,我需要将数据保存在Firestore 集合中才能触发电子邮件。我说得对吗?
如果是这样的话,我可以通过任何方式发送电子邮件而无需将此特定扩展程序存储在 Firestore 集合中吗?
如果没有,我有什么选择。
由于这是个人站点,因此此类服务的成本将是一个问题。

My understanding is that I need to save the data in Firestore collection to trigger email. Am I getting it correct?

是的,没错。

If so is their [sic] any way I can send an email without storing in Firestore collection for this particular extension?

没有。当文档写入 Firestore 时,此扩展特定会发送一封电子邮件。当没有文档写入 Firestore 时,它​​什么都不做。

If no what alternatives are available to me[?]

产品推荐在 Stack Overflow 上 off-topic,但搜索可能是您最好的朋友,因为您正在寻找 how to send an email from a Flutter app or a free service for sending email from your Flutter app