How to Email a Web Form's results as a TXT file attachment

Here is what I'd like to do:

1. Have a prospective customer enter their telephone number (the number they want called) in to a form...