re write of emailer