Email functionality using param