Added basic cookie email code