我有一个iOS应用程序,我正在使用Cloud Firestore。我已经阅读了firebase提供的文档,但我仍然不确定如何将其与swift编程结合使用。有没有人知道或有使用swiftui应用程序实现这个firebase跳跳者函数的经验?我如何实现这一点?
发布于 2021-03-05 18:43:03
在向Firestore集合添加新文档时,可以使用Trigger Email扩展发送电子邮件。
要使用它,您必须执行以下操作:
db.collection("mail").addDocument(data: [
"to": "someone@example.com",
"message": [
"subject": "Hello from Firebase",
"html": "This is an <code>HTML</code> email body."
]
]) { err in
if let err = err {
print("Error writing document: \(err)")
} else {
print("Document successfully written!")
}
}https://stackoverflow.com/questions/66470748
复制相似问题