Sending text to my email or somewhere else

How to do it so that if you enter two input lines and press OK it will send these two lines somewhere i can see them?