created emailer and integration testing