Added a function to extract sender email addr