adding email code