moving email to it's own background job