adds functionality to send emails with emails object in firebase
makes the phone number formatting clear