Ummm...what kind of email attachment? What does it contain? SQL statements? Text? Spreadsheet? Or???
And do you mean you want to write a program that will do this on a regular basis? Or is this just a one-off?
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.