inor fixes added functionlaity to email