Flag mailer

Adds email alert functionality for flags