Update: adding email functionality

Update: adding email functionality