简体   繁体   中英

Send an email to all the users on Firebase from Authentication list

Is there a way for me to send an email to all the users that are in my Authentication list. I know that I can send email on the beginning (Email address verification) but this is not a case. I made a new update to an app and I want to send an email explaining what went wrong.

I know this question is over two years old at this point, but for anyone new coming across this -

Firebase now provides Extensions , one of which addresses this issue: https://firebase.google.com/products/extensions/auth-mailchimp-sync/

This extension automatically generates cloud-functions which adds new users to a specified Mailchimp audience, and removes them if they delete their account.

If you have existing users that you wish to add first, then use the approach to list all users emails via the Admin SDK that @Doug Stevenson outlined previously.

Your best option (and maybe only option) is to use the Firebase Admin SDK and apply its User Management features to list all users . Once you have that list, you can use that to send your own email. Firebase will not send the email for you.

Firebase does not provide a newsletter service. The only way you can send an email to a user is when you are verifying the email address within the authentication process. To achieve what you want, you need to get the list of the emails of your users and use a third party app that allows you to send bulk emails but be aware of spam email regulations.

If you have a node server(which is kinda weird if you are using firebase to store information but I do have it for sockets and routes), you can achieve this using firebase admin sdk and then retrieving all the users and sending mails through nodemailer. But in my case what I was doing was weird and make sure you are not doing the same thibg: I was using socket for sending all the list of users. I know this is weird but back then, I didn't know about admin sdk and api get requests.

The MailChimp Firebase extension is a sound choice. However, its documentation is not very helpful and honestly overwhelming and lacking a ton of relevant details (assumes you know MailChimp inside out).

While trying to break through its capabilities and troubleshooting issues, I decided to write The Missing Dev Guide for Firebase and MailChimp Integration in the hopes that it'll save others a ton of time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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