Email functionality is done. Check script 3