I am attaching file in html web app using following code but it is not working
Whether you can put a file attached to an e-mail depends on the mailer. (but many mailers can't add attachement file from maito:protocol)
I think I was able to put the attachments in some versions of Outlook, perhaps.