I had assigned a work to make certain updation to the report system of one web application. Report system, of course not any third party expensive reporting tools, means exporting the data to MS Excel. You guys know that exporting the data from the Gridview control to MS Excel is not a gigantic task and i have already written a blog about it Export Dataset to Excel, so I did it with no challenge. Second task was to send the created MS Excel file as email attachment to the given email ID. I believe this is, again, not a task where you need to write mammoth code. Thanks to the Mircosoft to provide us with System.Net.Mail namespace which made our work pretty simple.