.txt file, mail() remnants

The beginnings of the mail function as well as the transport array
posting to the .txt file now. Where to next?