updates to email functions

keeping dev inline with prod