Add logging to client-side emailer