unit-testing

-Email now only fires when not unit testing.