Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 318
Dimitrije Protic Avatar asked Jan 23 '18 11:01

Dimitrije Protic


2 Answers

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.

like image 71
Michael McCormick Avatar answered Sep 22 '22 15:09

Michael McCormick


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.

like image 45
Doug Stevenson Avatar answered Sep 21 '22 15:09

Doug Stevenson