added email functionality
added email details functionaloty