Update email code