ASP: Send email upon d/l completion

Hiya guys, yeah so as the title says, what I want to do is fire off an email once the download has completed.

Currently the scripts fires off an email everytime the download link is clicked, which makes for a pretty messy inbox.

Any ideas?
cheers