In firebase rule how to get an email notification to my own email when user submit dataFirebase rules. From firebase rules side.. mail notification sent coding not done in the app
Asked
Active
Viewed 72 times
-1
-
What is the error here? What query are you trying to run? – Dharmaraj Feb 04 '23 at 11:56
-
if someone submit data in the app. can i receive a mail notification to my email – josh Feb 04 '23 at 12:02
-
What is the problem with the shared rules? – Alex Mamo Feb 04 '23 at 12:25
-
There is no problem. Only want to get an email notification to my email when an user submit data from android. From firebase rules side. – josh Feb 04 '23 at 12:34
-
sorry this is not well explained, so I can not help you. Can you explain the issue in more detail? – Peter Palmer Feb 04 '23 at 19:58
1 Answers
0
There is no way to trigger sending an email from Firebase security rules.
If you want to send an email when data is entered into the database, consider using a solution like Cloud Functions that can be triggered on such a database write operation. A similar (not same) scenario is shown in the example on notifying the user when something interesting happens.
Also see:

Frank van Puffelen
- 565,676
- 79
- 828
- 807
-
-
I answered your question on whether you can send an email from security rules, and explained how you **can** implement that use-case instead. If you're having trouble making that work, I recommend posting a new question with its own [minimal repro](http://stackoverflow.com/help/mcve) (read the link please, it's quite useful). – Frank van Puffelen Feb 06 '23 at 01:24