beginning email code