Tinu C Joseph
Tinu C Joseph

Reputation: 98

How to attach files in Outlook using mailto in HTML?

I use the following code to send mail using Outlook:

<a href="mailto:[email protected]?Subject=Hello%20test&body=Testing&attach=/Users/administrator/Desktop/test.txt">
Send Mail</a>

The problem is that I can't attach a file in Outlook. I have tried with 'Attachment' parameter but the same issue occurs. Can it be done or is there an alternative?

Upvotes: 2

Views: 3244

Answers (1)

David Strencsev
David Strencsev

Reputation: 1095

This is not allowed. Mind the risk of attaching a local file just by clicking a link, an attacker may get sent any sensitive file on your disk!

Upvotes: 1

Related Questions