File Is Download Link Through Email

I have a web application in which i have downloadable files i want that when user click on any file a form will open and user enter his/her email, then an email containing download link of that file is send to user email address please help me in this regard