So I need to create code that will read an emil and compare lines against regex and if the lines match then parse them into a variable. I think I have the regex part down. The only problem is I cannot figure out how to read the email.

Can someone help?