Email functionality added