uncommented email code