- added enviorment aware send emails var