Php form-submital help!

I need help figuring out the following problems. I have a news section for someone and I want it to do the following once they have done the updates and submitted the updates to their websites I would like to do the following.

  1. I want to get an email with an attachment of what they just added.
  2. I want also want it to create a basic text file with only the basic HTML tags and have it named something.

I hope I was clear enough for everyone to understand. If someone can help me ASAP that would be greatly appreciated. THANKS!!!:beer: