Being that you are 2005 you should look at using sp_send_dbmail. The parameters @attach_query_results_as_file and @query are the key ones you are going to need.
Post with any problems or other questions.
David
@SQLTentmaker“He is no fool who gives what he cannot keep to gain that which he cannot lose” - Jim Elliot