2

I use the following code to send mail using Outlook:

<a href="mailto:test@example.com?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?

chornge
  • 2,021
  • 3
  • 28
  • 37
Tinu C Joseph
  • 98
  • 1
  • 6
  • 1
    There is no way to do this through Outlook from a web browser, you should send the email from the server. – robertc Dec 06 '12 at 14:56
  • Possible duplicate of [using mailto to send email with an attachment](https://stackoverflow.com/questions/5233556/using-mailto-to-send-email-with-an-attachment) – nortontgueno Jan 22 '19 at 14:27

1 Answers1

1

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!

David Strencsev
  • 1,065
  • 11
  • 11