I had a similar requirement that I had to send an email when downloading a document. In WSS 3.0, I wrote an Http module that looked at the request URL, and if the request prefix matches my document library URL, I grabbed this download / view.
source
share