简体   繁体   English

想要使用Swift 3.0发送自定义电子邮件,即来自Firebase的欢迎邮件

[英]Want to send custom emails i.e. Welcome mail from firebase using Swift 3.0

I am using Firebase as my backend in one of my project. 我将Firebase用作我的一个项目的后端。 I want to send an email to the recipient whenever he is added into the group. 每当收件人添加到组中时,我都希望向其发送电子邮件。 Below is the structure of my DB. 下面是我的数据库的结构。

Main Group
-----Root
       -----Users
               ---- Friend-1
               ---- Friend-2
        .
        .
        and so on

What I want is to trigger an email whenever a new friend is added in the group Users. 我想要的是每当在“用户”组中添加新朋友时触发电子邮件。 I searched and found 3 types of emails supported by firebase but that is only for the main users which are seen in Authentication tab on console. 我搜索并找到了Firebase支持的3种电子邮件,但这仅适用于控制台上“身份验证”选项卡中显示的主要用户。

You can either send email directly from the phone, as described here: How can I send mail from an iPhone application 您可以直接从手机发送电子邮件,如下所述: 如何从iPhone应用程序发送电子邮件

Alternatively, you can send email from the Firebase servers by using Cloud Functions for Firebase. 另外,您可以使用Cloud Functions for Firebase从Firebase服务器发送电子邮件。 Your use-case is closest to the Send confirmation emails to users subscribing/unsubscribing to a newsletter. 您的用例最接近向订阅/取消订阅新闻通讯的用户发送确认电子邮件。 sample in the list of use-cases. 用例列表中的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM